2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
drop table if exists t1,t2;
9
a int unsigned not null auto_increment primary key,
13
a int unsigned not null auto_increment primary key,
16
INSERT INTO t1 VALUES (NULL, 0);
17
INSERT INTO t1 SELECT NULL, 0 FROM t1;
18
INSERT INTO t2 VALUES (NULL, 0), (NULL,1);
19
SELECT * FROM t1 ORDER BY a;
23
SELECT * FROM t2 ORDER BY a;
27
UPDATE t1, t2 SET t1.b = (t2.b+4) WHERE t1.a = t2.a;
28
SELECT * FROM t1 ORDER BY a;
32
SELECT * FROM t2 ORDER BY a;
36
SELECT * FROM t1 ORDER BY a;
40
SELECT * FROM t2 ORDER BY a;
46
CREATE TABLE t1 ( a INT );
47
INSERT INTO t1 VALUES (0);
48
UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b;