管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-22 e54d2051a18d4f5b0ce42f7ee38a7157981e86dc
1
已修改1个文件
13 ■■■■■ 文件已修改
data/db_cx.sql 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/db_cx.sql
@@ -29,6 +29,11 @@
select * from lf.sys_meta where id in (1523,1529,1525);
select * from lf.sys_meta where type='gdb' or position('gdb' in name) > 0;
select st_astext(geom) from bd.b_borehole limit 10;
select count(*) from bd.b_borehole -- 357824
select * from bd.b_borehole limit 10;
select * from lf.sys_layer order by id desc;
@@ -45,8 +50,14 @@
---------------------------------------------------------------------------------------------- -1.更新钻孔
select count(*) from bd.b_borehole; -- 357824
select count(*) from lf.sys_attach; -- 357880 = 56 + 357824
select * from bd.b_borehole limit 10; -- 基础钻孔
-- update bd.b_borehole set path = 'Drill\' || path;
-- insert into lf.sys_attach (name, guid, path, tab, tab_guid)
select substr(path, length(path) - position('\' in reverse(path)) + 2), eventid, path, 'bd.b_borehole', eventid from bd.b_borehole;
---------------------------------------------------------------------------------------------- 00.SQL查询
insert into lf.sys_meta_pub (metaid, pubid) select 1, 1 from (select 1) temp where not exists (select 1 from lf.sys_meta_pub where metaid = 1 and pubid = 1);