mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
30 lines
664 B
Plaintext
30 lines
664 B
Plaintext
|
-- { echoOn }
|
||
|
select startsWithUTF8('富强民主文明和谐', '富强');
|
||
|
1
|
||
|
select startsWithUTF8('富强民主文明和谐', '\xe5');
|
||
|
0
|
||
|
select startsWithUTF8('富强民主文明和谐', '');
|
||
|
1
|
||
|
SELECT startsWithUTF8('123', '123');
|
||
|
1
|
||
|
SELECT startsWithUTF8('123', '12');
|
||
|
1
|
||
|
SELECT startsWithUTF8('123', '1234');
|
||
|
0
|
||
|
SELECT startsWithUTF8('123', '');
|
||
|
1
|
||
|
select endsWithUTF8('富强民主文明和谐', '和谐');
|
||
|
1
|
||
|
select endsWithUTF8('富强民主文明和谐', '\x90');
|
||
|
0
|
||
|
select endsWithUTF8('富强民主文明和谐', '');
|
||
|
1
|
||
|
SELECT endsWithUTF8('123', '3');
|
||
|
1
|
||
|
SELECT endsWithUTF8('123', '23');
|
||
|
1
|
||
|
SELECT endsWithUTF8('123', '32');
|
||
|
0
|
||
|
SELECT endsWithUTF8('123', '');
|
||
|
1
|