ClickHouse/tests/queries/0_stateless/00233_position_function_sql_comparibilty.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
532 B
MySQL
Raw Normal View History

SET send_logs_level = 'fatal';
select 1 = position('' in '');
select 1 = position('' in 'abc');
select 0 = position('abc' in '');
select 1 = position('abc' in 'abc');
select 2 = position('bc' in 'abc');
select 3 = position('c' in 'abc');
select 1 = position('' in '');
select 1 = position('' in 'абв');
select 0 = position('абв' in '');
select 1 = position('абв' in 'абв');
select 3 = position('бв' in 'абв');
select 5 = position('в' in 'абв');
2021-01-06 18:06:34 +00:00
select 6 = position('/' IN s) FROM (SELECT 'Hello/World' AS s);