ClickHouse/dbms/tests/queries/0_stateless/00496_substring_negative_offset.sql
2017-08-18 22:02:50 +03:00

5 lines
326 B
SQL

SELECT substring('abc', number - 5) FROM system.numbers LIMIT 10;
SELECT substring(materialize('abc'), number - 5) FROM system.numbers LIMIT 10;
SELECT substring(toFixedString('abc', 3), number - 5) FROM system.numbers LIMIT 10;
SELECT substring(materialize(toFixedString('abc', 3)), number - 5) FROM system.numbers LIMIT 10;