码迷,mamicode.com
首页 > 数据库 > 详细

航图转换相关sql

时间:2017-10-25 00:31:16      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:tin   order by   转换   spec   director   distinct   code   相关   where   

--旧库列举所有类型航图

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

--新库顺序列举航图类型

select * from TERMINAL_CHART_TYPE t
order by nvl(t.parent_type_id,0),t.seq_num

航图转换相关sql

标签:tin   order by   转换   spec   director   distinct   code   相关   where   

原文地址:http://www.cnblogs.com/mol1995/p/7726260.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!