⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 4 of about 4 for violates (0.002 sec.)
Constraints – DuckDB 12371
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... dents VALUES ( 1 , 'Student 1' ); INSERT INTO students VALUES ( 1 , 'Student 2' ); Constraint Error: Duplicate key "id: 1" violates primary key constraint CREATE TABLE students ( id INTEGER , name VARCHAR , PRIMARY KEY ( id , name )); INSERT INTO student ... , 'Student 2' ); INSERT INTO students VALUES ( 1 , 'Student 1' ); Constraint Error: Duplicate key "id: 1, name: Student 1" violates primary key constraint In order to enforce this property efficiently, an ART index is automatically created for every prim ... O students VALUES ( 2 , 'Student 2' , ' [email protected] ' ); Constraint Error: Duplicate key "email: [email protected] " violates unique constraint. INSERT INTO students ( id , name ) VALUES ( 3 , 'Student 3' ); INSERT INTO students ( name , email ) VA ...
https://man.mtool.work/duckdb/1.3/sql/constraints.html
CREATE TABLE Statement – DuckDB 8636
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... le: INSERT INTO t1 VALUES ( 1 , 'a' ); INSERT INTO t2 VALUES ( 1 , 1 ); INSERT INTO t2 VALUES ( 2 , 2 ); Constraint Error: Violates foreign key constraint because key "id: 2" does not exist in the referenced table Foreign keys can be defined on composite ... NTO t3 VALUES ( 1 , 'a' ); INSERT INTO t4 VALUES ( 1 , 1 , 'a' ); INSERT INTO t4 VALUES ( 2 , 1 , 'b' ); Constraint Error: Violates foreign key constraint because key "id: 1, j: b" does not exist in the referenced table Foreign keys can also be defined o ... es with self-referencing foreign keys is currently not supported and will result in the following error: Constraint Error: Violates foreign key constraint because key "..." does not exist in the referenced table. Generated Columns The [type] [GENERATED A ...
https://man.mtool.work/duckdb/1.3/sql/statements/create_table.html
Indexes – DuckDB 8321
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... INTO my_table SELECT range FROM range ( 3_000 ); UPDATE my_table SET i = i + 1 ; Constraint Error: Duplicate key "i: 2048" violates primary key constraint. A workaround is to split the UPDATE into a DELETE ... RETURNING ... followed by an INSERT , with s ... ble ( id )); INSERT INTO fk_table VALUES ( 1 ); UPDATE pk_table SET payload = [ 'world' ] WHERE id = 1 ; Constraint Error: Violates foreign key constraint because key "id: 1" is still referenced by a foreign key in a different table. If this is an unexpe ...
https://man.mtool.work/duckdb/1.3/sql/indexes.html
INSERT Statement – DuckDB 7618
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... tbl VALUES ( 1 , 42 ); INSERT INTO tbl VALUES ( 1 , 84 ); This raises as an error: Constraint Error: Duplicate key "i: 1" violates primary key constraint. The table will contain the row that was first inserted: SELECT * FROM tbl ; i j 1 42 These error m ...
https://man.mtool.work/duckdb/1.3/sql/statements/insert.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work