ClickHouse/tests/queries/0_stateless/01073_show_tables_not_like.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

34 lines
700 B
SQL

SHOW TABLES NOT LIKE '%';
DROP DATABASE IF EXISTS test_01073;
CREATE DATABASE test_01073;
USE test_01073;
SHOW TABLES;
SELECT '---';
CREATE TABLE test1 (x UInt8) ENGINE = Memory;
CREATE TABLE test2 (x UInt8) ENGINE = Memory;
SHOW TABLES;
SELECT '--';
SHOW TABLES LIKE 'tes%';
SELECT '--';
SHOW TABLES NOT LIKE 'tes%';
SELECT '--';
SHOW TABLES LIKE 'tes%1';
SELECT '--';
SHOW TABLES NOT LIKE 'tes%2';
SELECT '---';
SHOW TABLES FROM test_01073;
SELECT '--';
SHOW TABLES FROM test_01073 LIKE 'tes%';
SELECT '--';
SHOW TABLES FROM test_01073 NOT LIKE 'tes%';
SELECT '--';
SHOW TABLES FROM test_01073 LIKE 'tes%1';
SELECT '--';
SHOW TABLES FROM test_01073 NOT LIKE 'tes%2';
DROP DATABASE test_01073;