sel000032.test
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 0k
Category:

MySQL

Development Platform:

Visual C++

  1. # sel000032
  2. #
  3. # Versions
  4. # --------
  5. #   3.22
  6. #   3.23
  7. #
  8. # Description
  9. # -----------
  10. # test for a bug with elt()
  11. drop table if exists t1,t2;
  12. create  table t1 (id int(10) not null unique);
  13. create  table t2 (id int(10) not null primary key,
  14. val int(10) not null);
  15. insert into t1 values (1),(2),(4);
  16. insert into t2 values (1,1),(2,1),(3,1),(4,2);
  17. @r/sel000032.result select one.id, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id;