| | |
| | | left join pg_class c on a.attrelid = c.oid |
| | | left join pg_type d on a.atttypid = d.oid |
| | | left join information_schema.tables e on e.table_name = c.relname |
| | | where a.attnum >= 0 and reltype > 0 and a.attname = 'verid' and d.typname != 'int4' --and relnamespace in (29257,20582) |
| | | where a.attnum >= 0 and reltype > 0 and a.attname = 'updateuser' and d.typname != 'int4' --and relnamespace in (29257,20582) |
| | | order by c.relname desc, a.attnum asc; |
| | | |
| | | select pg_constraint.conname as pk_name,pg_attribute.attname as colname,pg_type.typname as typename from pg_constraint inner join pg_class |
| | |
| | | delete from lf.sys_operate where modular1 not in ('综合展示','数据质检','数据管理','数据交换','服务管理','系统对接','运维管理'); |
| | | select id,cn_name,elev from lf.sys_layer where cn_name in ('火车站','地下管线','中卫站','庆阳站','地层示例'); |
| | | |
| | | |
| | | select * from lf.sys_dir where pid=0 order by code; |
| | | |
| | | |
| | | |