mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
This commit is contained in:
@ -1828,11 +1828,12 @@ drop tables t1,t2;
|
||||
#
|
||||
CREATE TABLE t1 (EMPNUM CHAR(3));
|
||||
CREATE TABLE t2 (EMPNUM CHAR(3) );
|
||||
INSERT INTO t1 VALUES ('E1');
|
||||
INSERT INTO t1 VALUES ('E1'),('E2');
|
||||
INSERT INTO t2 VALUES ('E1');
|
||||
DELETE FROM t1
|
||||
WHERE t1.EMPNUM NOT IN
|
||||
(SELECT t2.EMPNUM
|
||||
FROM t2
|
||||
WHERE t1.EMPNUM = t2.EMPNUM);
|
||||
select * from t1;
|
||||
DROP TABLE t1,t2;
|
||||
|
Reference in New Issue
Block a user