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

MySQL

Development Platform:

Visual C++

  1. #
  2. # test variables
  3. #
  4. set @`test`=1,@TEST=3,@select=2;
  5. select @test,@`select`,@TEST,@not_used;
  6. set @test_int=10,@test_double=1e-10,@test_string="abcdeghi",@test_string2="abcdefghij",@select=NULL;
  7. select @test_int,@test_double,@test_string,@test_string2,@select;
  8. set @test_int="hello",@test_double="hello",@test_string="hello",@test_string2="hello";
  9. select @test_int,@test_double,@test_string,@test_string2;
  10. set @test_int="hellohello",@test_double="hellohello",@test_string="hellohello",@test_string2="hellohello";
  11. select @test_int,@test_double,@test_string,@test_string2;
  12. set @test_int=null,@test_double=null,@test_string=null,@test_string2=null;
  13. select @test_int,@test_double,@test_string,@test_string2;
  14. select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3;