standard MD code blocks insert.md

This commit is contained in:
jackfoxy 2024-04-10 09:58:41 -07:00
parent ba15948a1e
commit 589520e755

View File

@ -2,23 +2,23 @@
Inserts rows into a `<table>`. Inserts rows into a `<table>`.
``` ``
<insert> ::= <insert> ::=
INSERT INTO <table> INSERT INTO <table>
[ ( <column> [ ,...n ] ) ] [ ( <column> [ ,...n ] ) ]
{ VALUES (<scalar-expression> [ ,...n ] ) [ ...n ] { VALUES (<scalar-expression> [ ,...n ] ) [ ...n ]
| <transform> } | <transform> }
[ <as-of-time> ] [ <as-of-time> ]
``` ``
``` ``
<scalar-expression> ::= <scalar-expression> ::=
{ <constant> { <constant>
| TBD } | TBD }
``` ``
### API ### API
``` ``
+$ insert +$ insert
$: $:
%insert %insert
@ -27,7 +27,7 @@ Inserts rows into a `<table>`.
values=insert-values values=insert-values
as-of=(unit as-of) as-of=(unit as-of)
== ==
``` ``
### Arguments ### Arguments
@ -83,11 +83,11 @@ cannot add duplicate key: `<row-key>`
## Example ## Example
``` ``
INSERT INTO reference.species-vital-signs-ranges INSERT INTO reference.species-vital-signs-ranges
(species, temp-low, temp-high, heart-rate-low, heart-rate-high, respiratory-rate-low, respiratory-rate-high) (species, temp-low, temp-high, heart-rate-low, heart-rate-high, respiratory-rate-low, respiratory-rate-high)
VALUES VALUES
('Dog', .99.5, .102.5, 60, 140, 10, 35) ('Dog', .99.5, .102.5, 60, 140, 10, 35)
('Cat', .99.5, .102.5, 140, 220, 20, 30) ('Cat', .99.5, .102.5, 140, 220, 20, 30)
('Rabbit', .100.5, .103.5, 120, 150, 30, 60); ('Rabbit', .100.5, .103.5, 120, 150, 30, 60);
``` ``