[add sql and csv file for demo]

This commit is contained in:
huili 2019-07-22 18:55:23 +08:00
parent af59bee0d2
commit 964e0b8dc4
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,11 @@
1503851026421, 1
1503851026422, 2
1503851026423, 3
1503851026424, 4
1503851026425, 5
'2019-07-22 10:00:01.000', 6
'2019-07-22 10:00:02.000', 7
'2019-07-22 10:01:02.000', 8
'2019-07-22 11:01:02.000', 9
'2019-07-23 11:01:02.000', 10
1 1503851026421 1
2 1503851026422 2
3 1503851026423 3
4 1503851026424 4
5 1503851026425 5
6 '2019-07-22 10:00:01.000' 6
7 '2019-07-22 10:00:02.000' 7
8 '2019-07-22 10:01:02.000' 8
9 '2019-07-22 11:01:02.000' 9
10 '2019-07-23 11:01:02.000' 10

View File

@ -0,0 +1,17 @@
create database if not exists db0
create table if not exists db0.tb0 (ts timestamp, field int)
import into db0.tb0 file demo.csv
create database if not exists db1
use db1
create table if not exists tb1 (ts timestamp, name binary(8))
insert into tb1 values('2010-07-23 11:01:02.000', 'xxxx')
insert into tb1 values(now, 'aaaa');
insert into tb1 values(now+1a, 'bbbb');
insert into tb1 values(now+1s, 'cccc');
insert into tb1 values(now+1m, 'dddd');
insert into tb1 values(now+1h, 'eeee');
insert into tb1 values(now+1d, 'ffff');
insert into tb1 values(now+1w, 'gggg');
insert into tb1 values(now+1n, 'hhhh');
insert into tb1 values(now+1y, 'iiii');