提交 21b84c37 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 de1caabc
...@@ -599,9 +599,11 @@ CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName { BEFORE | AFTER | INSTEAD OF } ...@@ -599,9 +599,11 @@ CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName { BEFORE | AFTER | INSTEAD OF }
{ INSERT | UPDATE | DELETE | SELECT | ROLLBACK } [,...] ON tableName [ FOR EACH ROW ] { INSERT | UPDATE | DELETE | SELECT | ROLLBACK } [,...] ON tableName [ FOR EACH ROW ]
[ QUEUE int ] [ NOWAIT ] CALL triggeredClassName [ QUEUE int ] [ NOWAIT ] CALL triggeredClassName
"," ","
Creates a new trigger. The trigger class must be public. Inner classes are not supported. Creates a new trigger.
The class must be available in the classpath of the The trigger class must be public and implement ""org.h2.api.Trigger"".
database engine (when using the server mode, it must be in the classpath of the server). Inner classes are not supported.
The class must be available in the classpath of the database engine
(when using the server mode, it must be in the classpath of the server).
BEFORE triggers are called after data conversion is made, default values are set, BEFORE triggers are called after data conversion is made, default values are set,
null and length constraint checks have been made; null and length constraint checks have been made;
...@@ -1598,6 +1600,9 @@ The computed column expression is evaluated and assigned whenever the row change ...@@ -1598,6 +1600,9 @@ The computed column expression is evaluated and assigned whenever the row change
Identity and auto-increment columns are columns with a sequence as the Identity and auto-increment columns are columns with a sequence as the
default. The column declared as the identity columns is implicitly the default. The column declared as the identity columns is implicitly the
primary key column of this table (unlike auto-increment columns). primary key column of this table (unlike auto-increment columns).
Check constraints can reference columns of the table,
and they can reference objects that exist while the statement is executed.
"," ","
CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255) DEFAULT ''); CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255) DEFAULT '');
CREATE TABLE TEST(ID BIGINT IDENTITY); CREATE TABLE TEST(ID BIGINT IDENTITY);
...@@ -2252,9 +2257,12 @@ UUID ...@@ -2252,9 +2257,12 @@ UUID
"Data Types","ARRAY Type"," "Data Types","ARRAY Type","
ARRAY ARRAY
"," ","
An array of values. Use a value list (1, 2) or ""PreparedStatement.setObject(.., new Object[] {..})"" to store values. An array of values.
Mapped to ""java.lang.Object[]"" (arrays of any non-primitive type are also supported). Mapped to ""java.lang.Object[]"" (arrays of any non-primitive type are also supported).
Use a value list (1, 2) or ""PreparedStatement.setObject(.., new Object[] {..})"" to store values,
and ""ResultSet.getObject(..)"" or ""ResultSet.getArray(..)"" to retrieve the values.
"," ","
ARRAY ARRAY
" "
......
...@@ -557,6 +557,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -557,6 +557,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>PHP support: H2 should support PDO, or test with PostgreSQL PDO. </li><li>PHP support: H2 should support PDO, or test with PostgreSQL PDO.
</li><li>Outer joins: if no column of the outer join table is referenced, the outer join table could be removed from the query. </li><li>Outer joins: if no column of the outer join table is referenced, the outer join table could be removed from the query.
</li><li>Cluster: allow using auto-increment and identity columns by ensuring executed in lock-step. </li><li>Cluster: allow using auto-increment and identity columns by ensuring executed in lock-step.
</li><li>MySQL compatibility: index names only need to be unique for the given table.
</li></ul> </li></ul>
<h2>Not Planned</h2> <h2>Not Planned</h2>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论