标签: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
标签:tin order by 转换 spec director distinct code 相关 where
原文地址:http://www.cnblogs.com/mol1995/p/7726260.html