오라클
select DISTINCT TABLE_NAME, COLUMN_NAME
from ALL_TAB_COLUMNS
where TABLE_NAME = '해당테이블' AND OWNER = '해당데이터베이스'
ORDER BY COLUMN_NAME DESC;
MSSQL
select TABLE_NAME, COLUMN_NAME from information_schema.columns
where table_name = '해당테이블'
ORDER BY COLUMN_NAME DESC
'IT > [DB]' 카테고리의 다른 글
날짜출력시 응용 (0) | 2019.11.19 |
---|---|
네이버제공 DB정보 (0) | 2019.11.07 |
[COMMON] TABLE COPY (0) | 2019.10.11 |
db2 오류 (0) | 2017.12.09 |
IBM Installation Manager (0) | 2017.11.15 |