innodb-ucs2.result

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 314 行 · 第 1/2 页

RESULT
314
字号
create table t1 (a int, b char(10), c char(10), filler char(10), primary key(a, b(2)), unique key (a, c(2))) character set utf8 engine = innodb;create table t2 (a int, b char(10), c char(10), filler char(10), primary key(a, b(2)), unique key (a, c(2))) character set ucs2 engine = innodb;insert into t1 values (1,'abcdefg','abcdefg','one');insert into t1 values (2,'ijkilmn','ijkilmn','two');insert into t1 values (3,'qrstuvw','qrstuvw','three');insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');insert into t1 values (4,_utf8 0xe880bde880bd,_utf8 0xe880bde880bd,'six');insert into t1 values (4,_utf8 0xe880bdD0B1e880bd,_utf8 0xe880bdD0B1e880bd,'seven');insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');insert into t2 values (1,'abcdefg','abcdefg','one');insert into t2 values (2,'ijkilmn','ijkilmn','two');insert into t2 values (3,'qrstuvw','qrstuvw','three');insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');insert into t2 values (4,_ucs2 0x05630563,_ucs2 0x05630563,'eleven');insert into t2 values (4,_ucs2 0x0563001fc0563,_ucs2 0x0563001fc0563,'point');insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');update t1 set filler = 'boo' where a = 1;update t2 set filler ='email' where a = 4;select a,hex(b),hex(c),filler from t1 order by filler;a	hex(b)	hex(c)	filler1	61626364656667	61626364656667	boo4	D0B1	D0B1	eight4	5B	5B	five4	E880BD	E880BD	four4	E880BDD0B1E880BD	E880BDD0B1E880BD	seven4	E880BDE880BD	E880BDE880BD	six3	71727374757677	71727374757677	three2	696A6B696C6D6E	696A6B696C6D6E	twoselect a,hex(b),hex(c),filler from t2 order by filler;a	hex(b)	hex(c)	filler4	05630563	05630563	email4	0563	0563	email4	05612020	05612020	email4	01FC	01FC	email4	0120	0120	email4	00640065	00640065	email4	00E400E50068	00E400E50068	email4	0000E400	0000E400	email4	0000563001FC0563	0000563001FC0563	email1	0061006200630064006500660067	0061006200630064006500660067	one3	0071007200730074007500760077	0071007200730074007500760077	three2	0069006A006B0069006C006D006E	0069006A006B0069006C006D006E	twodrop table t1;drop table t2;create table t1 (a int, b varchar(10), c varchar(10), filler varchar(10), primary key(a, b(2)), unique key (a, c(2))) character set utf8 engine = innodb;create table t2 (a int, b varchar(10), c varchar(10), filler varchar(10), primary key(a, b(2)), unique key (a, c(2))) character set ucs2 engine = innodb;insert into t1 values (1,'abcdefg','abcdefg','one');insert into t1 values (2,'ijkilmn','ijkilmn','two');insert into t1 values (3,'qrstuvw','qrstuvw','three');insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');insert into t1 values (4,_utf8 0xe880bde880bd,_utf8 0xe880bde880bd,'six');insert into t1 values (4,_utf8 0xe880bdD0B1e880bd,_utf8 0xe880bdD0B1e880bd,'seven');insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');insert into t2 values (1,'abcdefg','abcdefg','one');insert into t2 values (2,'ijkilmn','ijkilmn','two');insert into t2 values (3,'qrstuvw','qrstuvw','three');insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');insert into t2 values (4,_ucs2 0x05630563,_ucs2 0x05630563,'eleven');insert into t2 values (4,_ucs2 0x0563001fc0563,_ucs2 0x0563001fc0563,'point');insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');update t1 set filler = 'boo' where a = 1;update t2 set filler ='email' where a = 4;select a,hex(b),hex(c),filler from t1 order by filler;a	hex(b)	hex(c)	filler1	61626364656667	61626364656667	boo4	D0B1	D0B1	eight4	5B	5B	five4	E880BD	E880BD	four4	E880BDD0B1E880BD	E880BDD0B1E880BD	seven4	E880BDE880BD	E880BDE880BD	six3	71727374757677	71727374757677	three2	696A6B696C6D6E	696A6B696C6D6E	twoselect a,hex(b),hex(c),filler from t2 order by filler;a	hex(b)	hex(c)	filler4	05630563	05630563	email4	0563	0563	email4	05612020	05612020	email4	01FC	01FC	email4	0120	0120	email4	00640065	00640065	email4	00E400E50068	00E400E50068	email4	0000E400	0000E400	email4	0000563001FC0563	0000563001FC0563	email1	0061006200630064006500660067	0061006200630064006500660067	one3	0071007200730074007500760077	0071007200730074007500760077	three2	0069006A006B0069006C006D006E	0069006A006B0069006C006D006E	twodrop table t1;drop table t2;create table t1 (a int, b text(10), c text(10), filler text(10), primary key(a, b(2)), unique key (a, c(2))) character set utf8 engine = innodb;create table t2 (a int, b text(10), c text(10), filler text(10), primary key(a, b(2)), unique key (a, c(2))) character set ucs2 engine = innodb;insert into t1 values (1,'abcdefg','abcdefg','one');insert into t1 values (2,'ijkilmn','ijkilmn','two');insert into t1 values (3,'qrstuvw','qrstuvw','three');insert into t1 values (4,_utf8 0xe880bd,_utf8 0xe880bd,'four');insert into t1 values (4,_utf8 0x5b,_utf8 0x5b,'five');insert into t1 values (4,_utf8 0xe880bde880bd,_utf8 0xe880bde880bd,'six');insert into t1 values (4,_utf8 0xe880bdD0B1e880bd,_utf8 0xe880bdD0B1e880bd,'seven');insert into t1 values (4,_utf8 0xD0B1,_utf8 0xD0B1,'eight');insert into t2 values (1,'abcdefg','abcdefg','one');insert into t2 values (2,'ijkilmn','ijkilmn','two');insert into t2 values (3,'qrstuvw','qrstuvw','three');insert into t2 values (4,_ucs2 0x00e400,_ucs2 0x00e400,'four');insert into t2 values (4,_ucs2 0x00640065,_ucs2 0x00640065,'five');insert into t2 values (4,_ucs2 0x00e400e50068,_ucs2 0x00e400e50068,'six');insert into t2 values (4,_ucs2 0x01fc,_ucs2 0x01fc,'seven');insert into t2 values (4,_ucs2 0x0120,_ucs2 0x0120,'eight');insert into t2 values (4,_ucs2 0x0563,_ucs2 0x0563,'ten');insert into t2 values (4,_ucs2 0x05630563,_ucs2 0x05630563,'eleven');insert into t2 values (4,_ucs2 0x0563001fc0563,_ucs2 0x0563001fc0563,'point');insert into t2 values (4,_ucs2 0x05612020,_ucs2 0x05612020,'taken');update t1 set filler = 'boo' where a = 1;update t2 set filler ='email' where a = 4;select a,hex(b),hex(c),filler from t1 order by filler;a	hex(b)	hex(c)	filler1	61626364656667	61626364656667	boo4	D0B1	D0B1	eight4	5B	5B	five4	E880BD	E880BD	four4	E880BDD0B1E880BD	E880BDD0B1E880BD	seven4	E880BDE880BD	E880BDE880BD	six3	71727374757677	71727374757677	three2	696A6B696C6D6E	696A6B696C6D6E	twoselect a,hex(b),hex(c),filler from t2 order by filler;a	hex(b)	hex(c)	filler4	0120	0120	email4	01FC	01FC	email4	0563	0563	email4	0000563001FC0563	0000563001FC0563	email4	0000E400	0000E400	email4	00640065	00640065	email4	00E400E50068	00E400E50068	email4	05612020	05612020	email4	05630563	05630563	email

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?