1
Fork 0
kantodb/testdata/sql/delete_where_non_key.slt

13 lines
308 B
Text

statement ok
CREATE TABLE kanto.myschema.mytable (a BIGINT NOT NULL, b BIGINT, PRIMARY KEY(a));
statement ok
INSERT INTO kanto.myschema.mytable (a, b) VALUES (42, 7), (13, 34);
statement ok
DELETE FROM kanto.myschema.mytable WHERE b=7;
query II
SELECT * FROM kanto.myschema.mytable ORDER BY a;
----
13 34