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

18 lines
357 B
Text
Raw Normal View History

2025-03-27 13:45:43 -06:00
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;
query I rowsort
SELECT * FROM kanto.myschema.mytable;
----
query I rowsort
SELECT count(*) FROM kanto.myschema.mytable;
----
0