~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/subselect3.result

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
NULL    1       100     0
248
248
NULL    2       100     NULL
249
249
create table t4 (x int);
250
 
insert into t4 select A.a + 10*B.a from t1 A, t1 B;
 
250
insert into t4 select A.a + 10*B.a from t1 A CROSS JOIN t1 B;
251
251
explain extended 
252
252
select a,b, oref, 
253
253
(a,b) in (select a,b from t1,t4 where c=t2.oref) Z 
772
772
DROP TABLE t1, t2;
773
773
create table t1 (a int, b decimal(13, 3));
774
774
insert into t1 values (1, 0.123);
775
 
select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
 
775
select a, (select max(b) from t1) into outfile "DRIZZLETEST_VARDIR/subselect.out.file.1" from t1;
776
776
delete from t1;
777
 
load data infile "subselect.out.file.1" into table t1;
 
777
load data infile "DRIZZLETEST_VARDIR/subselect.out.file.1" into table t1;
778
778
select * from t1;
779
779
a       b
780
780
1       0.123