ClickHouse/tests/queries/0_stateless/01638_div_mod_ambiguities.sql

10 lines
499 B
MySQL
Raw Normal View History

SELECT DIV AS MOD FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT DIV `MOD` FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT DIV MOD 1 FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT 1 DIV `MOD` `DIV` FROM (SELECT 1 `MOD`) FORMAT TSVWithNames;
SELECT DIV AS mod FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT div `MOD` FROM (SELECT 1 `div`) FORMAT TSVWithNames;
SELECT DIV mod 1 FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT 1 div `mod` `div` FROM (SELECT 1 `mod`) FORMAT TSVWithNames;