mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
15 lines
605 B
SQL
15 lines
605 B
SQL
select count() > 1 as ok from (select * from odbc('DSN={ClickHouse DSN (ANSI)}','system','tables'));
|
|
select count() > 1 as ok from (select * from odbc('DSN={ClickHouse DSN (Unicode)}','system','tables'));
|
|
|
|
DROP DATABASE IF EXISTS test_01086;
|
|
CREATE DATABASE test_01086;
|
|
USE test_01086;
|
|
|
|
CREATE TABLE t (x UInt8, y Float32, z String) ENGINE = Memory;
|
|
INSERT INTO t VALUES (1,0.1,'a я'),(2,0.2,'b ą'),(3,0.3,'c d');
|
|
|
|
select * from odbc('DSN={ClickHouse DSN (ANSI)}','test_01086','t') ORDER BY x;
|
|
select * from odbc('DSN={ClickHouse DSN (Unicode)}','test_01086','t') ORDER BY x;
|
|
|
|
DROP DATABASE test_01086;
|