mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
34 lines
710 B
SQL
34 lines
710 B
SQL
SELECT number = '1' FROM numbers(3);
|
|
SELECT '---';
|
|
SELECT '1' != number FROM numbers(3);
|
|
SELECT '---';
|
|
SELECT '1' > number FROM numbers(3);
|
|
SELECT '---';
|
|
SELECT 1 = '257';
|
|
SELECT '---';
|
|
SELECT 1 IN (1.23, '1', 2);
|
|
SELECT 1 IN (1.23, '2', 2);
|
|
SELECT '---';
|
|
|
|
-- it should work but it doesn't.
|
|
SELECT 1 = '1.0'; -- { serverError 53 }
|
|
SELECT '---';
|
|
|
|
SELECT 1 = '257';
|
|
SELECT '---';
|
|
SELECT 1 != '257';
|
|
SELECT '---';
|
|
SELECT 1 < '257'; -- this is wrong for now
|
|
SELECT '---';
|
|
SELECT 1 > '257';
|
|
SELECT '---';
|
|
SELECT 1 <= '257'; -- this is wrong for now
|
|
SELECT '---';
|
|
SELECT 1 >= '257';
|
|
SELECT '---';
|
|
|
|
SELECT toDateTime('2020-06-13 01:02:03') = '2020-06-13T01:02:03';
|
|
SELECT '---';
|
|
|
|
SELECT 0 = ''; -- { serverError 32 }
|