SELECT
A.Table_Name AS TableName,
A.COLUMN_NAME AS columnName,
A.DATA_TYPE AS dataType,
A.DATA_LENGTH AS dataLength,
B.COMMENTS AS comments,
A.NULLABLE AS nullAble
FROM dba_tab_columns A, all_col_comments B
WHERE A.OWNER = B.OWNER
AND A.TABLE_NAME = B.TABLE_NAME
AND A.COLUMN_NAME = B.COLUMN_NAME
AND A.OWNER = 'EJMIS'
AND A.Table_Name NOT LIKE 'BIN%'
Order by TableName, ColumnName
-- AND 조건으로 테이블명 선택시 생성하게끔도 가능
-- AND A.TABLE_NAME = #tableName#
'Oracle' 카테고리의 다른 글
Pro*C/C++ Programmer's Guide 10g Release 2 (10.2) (0) | 2011.07.15 |
---|---|
Performing a Complete Database Restore (Full Recovery Model) (0) | 2011.06.13 |
PQ 수 확인 (0) | 2011.06.06 |
v$sysaux_occupants & dba_hist_wr_control & dba_hist_snapshot (0) | 2011.06.06 |
대용량 테이블 Migration 전략 (Exchange, Parallel Processing) 기본 카테고리 (0) | 2011.06.06 |