~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/subselect3.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
 
301
301
select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
302
302
 
303
 
--sorted_result
304
303
select oref, a from t2 where a in (select ie from t1 where oref=t2.oref); 
305
304
 
306
305
select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
343
342
 
344
343
select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
345
344
 
346
 
--sorted_result
347
345
select oref, a from t2 where a in (select ie from t1 where oref=t2.oref); 
348
346
 
349
347
select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
356
354
 
357
355
select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
358
356
 
359
 
--sorted_result
360
357
select oref, a from t2 where a in (select ie from t1 where oref=t2.oref); 
361
358
 
362
359
select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
464
461
 
465
462
select oref, a, a in (select ie from t1 where oref=t2.oref) Z from t2;
466
463
 
467
 
--sorted_result
468
464
select oref, a from t2 where a in (select ie from t1 where oref=t2.oref);
469
465
 
470
466
select oref, a from t2 where a not in (select ie from t1 where oref=t2.oref);
583
579
CREATE TABLE t1 (a INT NOT NULL);
584
580
INSERT INTO t1 VALUES (1),(-1), (65),(66);
585
581
 
586
 
CREATE TABLE t2 (a INT NOT NULL PRIMARY KEY);
 
582
CREATE TABLE t2 (a INT UNSIGNED NOT NULL PRIMARY KEY);
587
583
INSERT INTO t2 VALUES (65),(66);
588
584
 
589
585
SELECT a FROM t1 WHERE a NOT IN (65,66);