ClickHouse/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

20 lines
392 B
SQL

SET readonly = 2;
CREATE TEMPORARY TABLE readonly00542 (
ID Int
) Engine = Memory;
INSERT INTO readonly00542 (ID)
VALUES (1), (2), (3), (4), (5);
SELECT ID FROM readonly00542 ORDER BY ID;
INSERT INTO readonly00542 (ID)
SELECT CAST(number * 10 AS Int) FROM system.numbers LIMIT 10;
SELECT '---';
SELECT ID FROM readonly00542 ORDER BY ID;
DROP TEMPORARY TABLE readonly00542;