mirror of
https://github.com/chaisql/chai.git
synced 2025-09-26 19:51:21 +08:00
11 lines
214 B
SQL
11 lines
214 B
SQL
-- test: int type constraint, double
|
|
CREATE TABLE test (pk int primary key, a int CHECK(a > 10));
|
|
INSERT INTO test (pk, a) VALUES (11, 11);
|
|
UPDATE test SET a = 15.2;
|
|
SELECT a FROM test;
|
|
/* result:
|
|
{
|
|
a: 15
|
|
}
|
|
*/
|