mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
b9bc1e9108
into mysql.com:/home/mydev/mysql-5.1-wl1563-msg
20 lines
846 B
Text
20 lines
846 B
Text
drop table if exists t1, t2;
|
|
CREATE TABLE t1 ( a int );
|
|
INSERT INTO t1 VALUES (1),(2),(1);
|
|
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
drop table t1;
|