1
Fork 0

add simple create table support

This commit is contained in:
Jake Wheat 2015-08-01 23:16:26 +03:00
parent 2938f642d3
commit 6802aaef5a
4 changed files with 59 additions and 4 deletions
tools/Language/SQL/SimpleSQL

View file

@ -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>