mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
13 lines
238 B
Text
13 lines
238 B
Text
|
DROP TABLE IF EXISTS t1;
|
||
|
CREATE TABLE t1 (
|
||
|
pk1 INT NOT NULL PRIMARY KEY,
|
||
|
b INT NOT NULL,
|
||
|
c INT NOT NULL
|
||
|
) ENGINE=ndbcluster;
|
||
|
INSERT INTO t1 VALUES (0, 0, 0),(1,1,1);
|
||
|
UPDATE t1 set b = c;
|
||
|
select * from t1 order by pk1;
|
||
|
pk1 b c
|
||
|
0 0 0
|
||
|
1 1 1
|