ctype_utf8.test

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· TEST 代码 · 共 40 行

TEST
40
字号
## Tests with the utf8 character set#--disable_warningsdrop table if exists t1,t2;--enable_warningsset names utf8;select left(_utf8 0xD0B0D0B1D0B2,1);select right(_utf8 0xD0B0D0B2D0B2,1);select locate('he','hello');select locate('he','hello',2);select locate('lo','hello',2);select locate('HE','hello');select locate('HE','hello',2);select locate('LO','hello',2);select locate('HE','hello' collate utf8_bin);select locate('HE','hello' collate utf8_bin,2);select locate('LO','hello' collate utf8_bin,2);select locate(_utf8 0xD0B1, _utf8 0xD0B0D0B1D0B2);select locate(_utf8 0xD091, _utf8 0xD0B0D0B1D0B2);select locate(_utf8 0xD0B1, _utf8 0xD0B0D091D0B2);select locate(_utf8 0xD091, _utf8 0xD0B0D0B1D0B2 collate utf8_bin);select locate(_utf8 0xD0B1, _utf8 0xD0B0D091D0B2 collate utf8_bin);select length(_utf8 0xD0B1), bit_length(_utf8 0xD0B1), char_length(_utf8 0xD0B1);select 'a' like 'a';select 'A' like 'a';select 'A' like 'a' collate utf8_bin;select _utf8 0xD0B0D0B1D0B2 like concat(_utf8'%',_utf8 0xD0B1,_utf8 '%');# Bug #6040: can't retrieve records with umlaut# characters in case insensitive manner.# Case insensitive search LIKE comparison# was broken for multibyte characters:select convert(_latin1'G黱ter Andr

⌨️ 快捷键说明

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