ClickHouse/tests/queries/0_stateless/01889_sqlite_read_write.reference

49 lines
922 B
Plaintext
Raw Normal View History

2021-07-10 11:35:59 +00:00
create database engine
2021-07-10 10:31:21 +00:00
show database tables:
table1
table2
2021-07-10 11:35:59 +00:00
table3
2021-07-10 10:31:21 +00:00
describe table:
col1 Nullable(String)
col2 Nullable(Int64)
col1 Nullable(Int64)
col2 Nullable(String)
describe table:
CREATE TABLE SQLite.table1\n(\n `col1` Nullable(String),\n `col2` Nullable(Int64)\n)\nENGINE = SQLite
CREATE TABLE SQLite.table2\n(\n `col1` Nullable(Int64),\n `col2` Nullable(String)\n)\nENGINE = SQLite
select *:
line1 1
line2 2
line3 3
1 text1
2 text2
3 text3
test insert:
line4 4
4 text4
2021-07-10 11:35:59 +00:00
test NULLs:
1
2
3
4
2021-07-10 10:31:21 +00:00
after delete:
2021-07-10 11:35:59 +00:00
detach
2021-07-10 10:31:21 +00:00
line1 1
line2 2
line3 3
1 text1
2 text2
3 text3
2021-07-10 11:35:59 +00:00
create table engine with table1
CREATE TABLE default.sqlite_table1\n(\n `col1` String,\n `col2` Int32\n)\nENGINE = SQLite
line1 1
line2 2
line3 3
test1 12
create table engine with table2
CREATE TABLE default.sqlite_table2\n(\n `col1` Int32,\n `col2` String\n)\nENGINE = SQLite
1 text1
2 text2
3 text3
12 test2