📄 compare.result
字号:
drop table if exists t1;CREATE TABLE t1 (id CHAR(12) not null, PRIMARY KEY (id));insert into t1 values ('000000000001'),('000000000002');explain select * from t1 where id=000000000001;id select_type table type possible_keys key key_len ref rows Extra1 SIMPLE t1 index PRIMARY PRIMARY 12 NULL 2 Using where; Using indexselect * from t1 where id=000000000001;id000000000001delete from t1 where id=000000000002;select * from t1;id000000000001drop table t1;SELECT 'a' = 'a ';'a' = 'a '1SELECT 'a\0' < 'a';'a\0' < 'a'1SELECT 'a\0' < 'a ';'a\0' < 'a '1SELECT 'a\t' < 'a';'a\t' < 'a'1SELECT 'a\t' < 'a ';'a\t' < 'a '1CREATE TABLE t1 (a char(10) not null);INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;hex(a) STRCMP(a,'a') STRCMP(a,'a ')61 0 06100 -1 -16109 -1 -161 0 0DROP TABLE t1;SELECT CHAR(31) = '', '' = CHAR(31);CHAR(31) = '' '' = CHAR(31)0 0SELECT CHAR(30) = '', '' = CHAR(30);CHAR(30) = '' '' = CHAR(30)0 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -