mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
13 lines
387 B
MySQL
13 lines
387 B
MySQL
|
CREATE TEMPORARY TABLE constrained
|
||
|
(
|
||
|
`URL` String,
|
||
|
CONSTRAINT is_yandex CHECK domainWithoutWWW(URL) = domainWithoutWWW(URL),
|
||
|
CONSTRAINT is_utf8 CHECK isValidUTF8(URL)
|
||
|
);
|
||
|
|
||
|
insert into constrained values ('a');
|
||
|
|
||
|
DROP TEMPORARY TABLE constrained;
|
||
|
CREATE TEMPORARY TABLE constrained (x UInt8, CONSTRAINT bogus CHECK 0);
|
||
|
INSERT INTO constrained VALUES (1); -- { serverError 469 }
|