mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-19 16:15:07 +00:00
16 lines
460 B
Plaintext
16 lines
460 B
Plaintext
> CREATE KEYSPACE k WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
|
|
OK
|
|
> USE k;
|
|
OK
|
|
> CREATE TABLE t1 (userid int PRIMARY KEY);
|
|
OK
|
|
> CREATE TABLE t2 (userid int PRIMARY KEY);
|
|
OK
|
|
> BEGIN BATCH
|
|
> INSERT INTO t1 (userid) VALUES (1) IF NOT EXISTS
|
|
> INSERT INTO t2 (userid) VALUES (1) IF NOT EXISTS
|
|
> APPLY BATCH;
|
|
Error from server: code=2200 [Invalid query] message="BATCH with conditions cannot span multiple tables"
|
|
> DROP KEYSPACE k;
|
|
OK
|