935 B
935 B
-- Table 목록
-- select distinct ETT_NO , ETT_GBN, ETT_ID , TableNm , ETT_DESC , TableID , TableNm
select distinct ETT_NO , ETT_GBN, ETT_ID , TableNm , ETT_DESC , '','','', TableID , TableNm
from Table_items
order by ETT_SEQ, cast(ETT_NO as integer)
-- Table 상세
-- select distinct ETT_NO , ETT_GBN, ETT_ID , TableNm , ETT_DESC , TableID , TableNm
select SEQ , no, TableID , tablenm, CollumnID , CollumnNm , Dong , `Type` , Len , NullYn , Pkyn , Fkyn , Idx , Def , Jeay , bigo
from Table_items
order by ETT_SEQ, cast(ETT_NO as integer), cast(no as double)
-- 공통 항목 찾기
select CollumnID , CollumnNm , count(*) as cnt
from table_items
where CollumnID like '%#_AT'escape '#'
group by CollumnID , CollumnNm
order by cnt desc
select *
from table_items ti
where nvl(CollumnNm,'') like '%%'
and nvl(CollumnID,'') like '%%'
and TableID like '%TIC_GROUND_VHCLE%'
order by cast(no as integer)