ClickHouse/dbms/tests/queries/0_stateless/00969_columns_clause.sql
2019-07-12 13:17:38 +02:00

4 lines
260 B
SQL

CREATE TABLE IF NOT EXISTS ColumnsClauseTest (product_price Int64, product_weight Int16, amount Int64) Engine=TinyLog;
INSERT INTO ColumnsClauseTest VALUES (100, 10, 324), (120, 8, 23);
SELECT COLUMNS 'product.*' from ColumnsClauseTest ORDER BY product_price;