add simple create table support
This commit is contained in:
parent
2938f642d3
commit
6802aaef5a
4 changed files with 59 additions and 4 deletions
tools/Language/SQL/SimpleSQL
|
@ -90,7 +90,10 @@ schema name can be quoted iden or unicode quoted iden
|
|||
[ WITH <system versioning clause> ]
|
||||
[ ON COMMIT <table commit action> ROWS ]
|
||||
|
||||
,(TestStatement SQL2011 "create table ( a int )"
|
||||
> ,(TestStatement SQL2011 "create table t (a int, b int);"
|
||||
> $ CreateTable [Name "t"]
|
||||
> [ColumnDef (Name "a") (TypeName [Name "int"])
|
||||
> ,ColumnDef (Name "b") (TypeName [Name "int"])])
|
||||
|
||||
|
||||
<table contents source> ::=
|
||||
|
@ -251,6 +254,16 @@ schema name can be quoted iden or unicode quoted iden
|
|||
GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY
|
||||
[ <left paren> <common sequence generator options> <right paren> ]
|
||||
|
||||
generated always as identity
|
||||
generated by default as identity
|
||||
|
||||
generated always as identity (start with signed_numeric
|
||||
increment by n
|
||||
maxvalue n | no maxvalue
|
||||
minvalue n | no minvalue)
|
||||
|
||||
generated always (valueexpr)
|
||||
|
||||
<generation clause> ::=
|
||||
<generation rule> AS <generation expression>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue