航图转换相关sql
--旧库列举所有类型航图
select distinct c.identifier airport_icao,d.sc_code chart_type,s.name
from special_chart s, airport c, special_chart_type d
where
c.isdirectory=1 and c.bureau_id<8 and
c.airport_id=s.airport_id and s.sc_type_id=d.sc_type_id
and d.sc_code='机场图_停机位置图'
order by s.name
--旧库排除文件Bolb字段后的查询语句
select c.identifier airport_icao, d.sc_code chart_type, s.sc_id,s.sc_type_id,s.airport_id,s.name,s.chart_filename,s.status,s.publish_type,s.create_date,s.publish_date,s.remark,s.create_account,s.effect_date,s.is_modified,s.catagory,s.usestate,s.modifyreason,s.referencefile,s.frontorback,s.last_modified_time,s.pdf_name,s.special_chart_seq,s.pagenumber,s.last_modified_account,s.ischecklist,s.isspecial,s.islandscape
from special_chart s, airport c, special_chart_type d
where c.isdirectory=1 and c.bureau_id<8 and c.airport_id=s.airport_id and s.sc_type_id=d.sc_type_id
order by c.identifier
--新库顺序列举航图类型
select * from TERMINAL_CHART_TYPE t
order by nvl(t.parent_type_id,0),t.seq_num
--新库中插入新航图类型
insert into TERMINAL_CHART_TYPE values((select max(chart_type_id)+1 from TERMINAL_CHART_TYPE),3,'离场图_VOR',3,null)
最新文章
- to_char 详解
- HDU 2091 空心三角形(模拟)
- Swift游戏实战-跑酷熊猫 07 平台的移动
- 关于oc运行时 isa指针详解
- innodb master thread 工作原理
- css z-index详解
- php缓存小技巧
- 图文教程:手把手教你用U盘安装Ubuntu
- Linux 下源码安装JDK
- 使用anyremote进行远程鼠标控制
- C#使用Xamarin开发可移植移动应用进阶篇(9.混淆代码,防止反编译)
- 转:JDK中的URLConnection参数详解
- 牛客网编程练习之PAT乙级(Basic Level):1034 写出这个数
- Error response from daemon: conflict: unable to remove repository reference 解决方案
- Prism框架研究(三)
- .net core 生成
- vue-cli脚手架之webpack.test.conf.js
- JDBC驱动-MySQL
- 9,EasyNetQ-版本化消息
- 【洛谷P1491】集合位置