| | |
| | | -- drop table if exists lf.sys_publish; |
| | | create table lf.sys_publish( |
| | | id serial primary key, |
| | | regid varchar(40), |
| | | name varchar(50), |
| | | url varchar(512), |
| | | path varchar(200), |
| | |
| | | create index idx_sys_publish_geom on lf.sys_publish using gist (geom); |
| | | comment on table lf.sys_publish is '数据发布表'; |
| | | comment on column lf.sys_publish.id is '主键ID'; |
| | | comment on column lf.sys_publish.regid is '注册ID'; |
| | | comment on column lf.sys_publish.name is '名称'; |
| | | comment on column lf.sys_publish.url is '地址'; |
| | | comment on column lf.sys_publish.path is '路径'; |
| | |
| | | comment on column lf.sys_publish.update_user is '更新人ID'; |
| | | comment on column lf.sys_publish.update_time is '更新时间'; |
| | | comment on column lf.sys_publish.bak is '备注'; |
| | | -- alter table lf.sys_publish add column regid varchar(40); |
| | | -- insert into lf.sys_publish (name,geom) values ('Test',ST_GeomFromText('POINT Z (101.9281 36.58675 2199.5)')); |
| | | |
| | | select st_astext(geom) "wkt",a.* from lf.sys_publish a; |