提交 96fea38b authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 fb9f4972
...@@ -1865,13 +1865,11 @@ inside an identifier. ...@@ -1865,13 +1865,11 @@ inside an identifier.
"Other Grammar","Referential Constraint"," "Other Grammar","Referential Constraint","
FOREIGN KEY ( columnName [,...] ) FOREIGN KEY ( columnName [,...] )
REFERENCES [ refTableName ] [ ( refColumnName [,...] ) ] REFERENCES [ refTableName ] [ ( refColumnName [,...] ) ]
[ ON DELETE { CASCADE | RESTRICT | NO ACTION | SET { DEFAULT | NULL } } ] [ ON DELETE referentialAction ] [ ON UPDATE referentialAction ]
[ ON UPDATE { CASCADE | SET { DEFAULT | NULL } } ]
"," ","
Defines a referential constraint. If the table name is not specified, then the Defines a referential constraint.
same table is referenced. RESTRICT is the default action. If the table name is not specified, then the same table is referenced.
As this database does not support deferred checking, RESTRICT is the default action.
RESTRICT and NO ACTION will both throw an exception if the constraint is violated.
If the referenced columns are not specified, then the primary key columns are used. If the referenced columns are not specified, then the primary key columns are used.
The required indexes are automatically created if required. The required indexes are automatically created if required.
Some tables may not be referenced, such as metadata tables. Some tables may not be referenced, such as metadata tables.
...@@ -1879,6 +1877,17 @@ Some tables may not be referenced, such as metadata tables. ...@@ -1879,6 +1877,17 @@ Some tables may not be referenced, such as metadata tables.
FOREIGN KEY(ID) REFERENCES TEST(ID) FOREIGN KEY(ID) REFERENCES TEST(ID)
" "
"Other Grammar","Referential Action","
CASCADE | RESTRICT | NO ACTION | SET { DEFAULT | NULL }
","
The action CASCADE will cause conflicting rows in the referencing (child) table to be deleted or updated.
RESTRICT is the default action.
As this database does not support deferred checking, RESTRICT and NO ACTION will both throw an exception if the constraint is violated.
The action SET DEFAULT will set the column in the referencing (child) table to the default value, while SET NULL will set it to NULL.
","
FOREIGN KEY(ID) REFERENCES TEST(ID) ON UPDATE CASCADE
"
"Other Grammar","Script Compression"," "Other Grammar","Script Compression","
COMPRESSION { DEFLATE | LZF | ZIP | GZIP } COMPRESSION { DEFLATE | LZF | ZIP | GZIP }
"," ","
......
...@@ -19,7 +19,7 @@ Change Log ...@@ -19,7 +19,7 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>The built-in connection pool is now a bit faster, specially if the system property <ul><li>The built-in connection pool is now a bit faster, specially if the system property
"h2.runFinalize" is set to "false". "h2.runFinalize" is set to "false".
</li><li>The scale was not set correctly in some cases when using </li><li>The scale was not set correctly in some cases when using
CREATE TABLE AS SELECT if there was no explicit column definition. CREATE TABLE AS SELECT if there was no explicit column definition.
</li><li>When trying to connect to a server using TCP/IP failed, it will retry at most </li><li>When trying to connect to a server using TCP/IP failed, it will retry at most
until the timeout. Before, it was the timeout multiplied with the retry count. until the timeout. Before, it was the timeout multiplied with the retry count.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -634,10 +634,13 @@ Quoted names are case sensitive, and can contain spaces." ...@@ -634,10 +634,13 @@ Quoted names are case sensitive, and can contain spaces."
"Other Grammar","Referential Constraint"," "Other Grammar","Referential Constraint","
FOREIGN KEY ( columnName [,...] ) FOREIGN KEY ( columnName [,...] )
REFERENCES [ refTableName ] [ ( refColumnName [,...] ) ] REFERENCES [ refTableName ] [ ( refColumnName [,...] ) ]
[ ON DELETE { CASCADE | RESTRICT | NO ACTION | SET { DEFAULT | NULL } } ] [ ON DELETE referentialAction ] [ ON UPDATE referentialAction ]
[ ON UPDATE { CASCADE | SET { DEFAULT | NULL } } ]
"," ","
Defines a referential constraint." Defines a referential constraint."
"Other Grammar","Referential Action","
CASCADE | RESTRICT | NO ACTION | SET { DEFAULT | NULL }
","
The action CASCADE will cause conflicting rows in the referencing (child) table to be deleted or updated."
"Other Grammar","Script Compression"," "Other Grammar","Script Compression","
COMPRESSION { DEFLATE | LZF | ZIP | GZIP } COMPRESSION { DEFLATE | LZF | ZIP | GZIP }
"," ","
......
...@@ -683,3 +683,4 @@ sine cosine tangent cotangent trigonometric hyperbolic lte abe alphabetical kill ...@@ -683,3 +683,4 @@ sine cosine tangent cotangent trigonometric hyperbolic lte abe alphabetical kill
diagnostics checkout somewhat icu delegation classifications karlsson applet diagnostics checkout somewhat icu delegation classifications karlsson applet
litailang springsource eccn springframework spr growth teams gigabytes europe litailang springsource eccn springframework spr growth teams gigabytes europe
mcleod decade experience travel willing scjp himself routinely tsi retrieving mcleod decade experience travel willing scjp himself routinely tsi retrieving
multiplied
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论