1
drop table if exists t1;
2
select 0x31+1,concat(0x31)+1,-0xf;
3
0x31+1 concat(0x31)+1 -0xf
5
select x'31',X'ffff'+0;
8
create table t1 (ID int not null auto_increment,UNIQ bigint not null,primary key (ID),unique (UNIQ) );
9
insert into t1 set UNIQ=0x38afba1d73e6a18a;
10
insert into t1 set UNIQ=123;
11
explain extended select * from t1 where UNIQ=0x38afba1d73e6a18a;
12
id select_type table type possible_keys key key_len ref rows filtered Extra
13
1 SIMPLE t1 const UNIQ UNIQ 8 const 1 100.00 Using index
15
Note 1003 select '1' AS `ID`,'4084688022709641610' AS `UNIQ` from `test`.`t1` where 1
18
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'x'hello'' at line 1
20
ERROR 42S22: Unknown column '0xfg' in 'field list'
21
create table t1 select 1 as x, 2 as xx;
27
ERROR 42S02: Table 'test.t1' doesn't exist
29
ERROR 42S02: Unknown table 't1'
30
create table t1(a varbinary(255));
31
insert into t1 values("aaa ");
32
select length(a) from t1;
35
alter table t1 modify a varchar(255);
36
select length(a) from t1;
40
drop table if exists table_28127_a;
41
drop table if exists table_28127_b;
42
create table table_28127_a(0b02 int);
43
show create table table_28127_a;
45
table_28127_a CREATE TABLE `table_28127_a` (
46
`0b02` int DEFAULT NULL
48
create table table_28127_b(0b2 int);
49
show create table table_28127_b;
51
table_28127_b CREATE TABLE `table_28127_b` (
52
`0b2` int DEFAULT NULL
54
drop table table_28127_a;
55
drop table table_28127_b;