lava-oushudb-dt-sql-parser/test/example.js

21 lines
1005 B
JavaScript
Raw Normal View History

2018-07-02 18:01:01 +08:00
const example={
test0:`--alter table sx_622_1 add partition(pa=${"${bdp.system.bizdate}"});
SELECT muyun_test_down1.id, muyun_test_down1.name, muyun_test_down2.age
FROM muyun_test_down1
JOIN muyun_test_down2
2018-07-05 11:16:30 +08:00
ON muyun_test_down1.id = muyun_test_down2.id
2018-07-02 18:01:01 +08:00
`,
2018-07-02 19:36:09 +08:00
test1:`/*asf*/create table sql_task_comment_test(id int comment 'id') comment 'sql test';
2018-07-02 18:01:01 +08:00
--sdfsss`,
2018-07-02 19:36:09 +08:00
test2:` /**/INSERT INTO TABLE muyun_test_down4
SELECT /*lkaslfklasf*/ muyun_test_down1.id, muyun_test_down1.name, muyun_test_down2.age
FROM /**/ muyun_test_down1
2018-07-02 18:01:01 +08:00
JOIN muyun_test_down2
ON muyun_test_down1.id = muyun_test_down2.id;`,
test3:`--alter table sx_622_1 add partition(pa=${"${bdp.system.bizdate}"});
alter table sx_622_1 add partition(pa=${"${bdp.system.cyctime}"});
alter table sx_622_1 add partition(pa=${"${bdp.system.currmonth}"});
alter table sx_622_1 add partition(pa=${"${bdp.system.premonth}"});`
}
module.exports=example;