[ORACLE] 오라클 테이블, 컬럼 가져오기

[분류없음]

/* 테이블 정보 가져오기 */
select table_name from user_tables where table_name like '[TABLE_NAME]';

/* 컬럼 정보 가져오기 */
select column_nm.*
from user_tables, (
    select table_name, column_name, data_type,data_length
    from All_tab_columns
    where owner = '[USER_NAME]'
    ) column_nm
where user_tables.table_name = column_nm.table_name
and user_tables.table_name like '[TABLE_NAME]'

크리에이티브 커먼즈 라이센스
Creative Commons License

이 글의 트랙백 주소 :: http://munduki.tomeii.com/darkhorse/trackback/254

::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::

  1. xero [2010/10/18 10:49]  [댓글주소]  [수정/삭제]  [댓글쓰기]

    오라클 이번에 해보려는데 공부가 많이 됬습니다.

    귀중한 정보, 감사합니다.

  2. 다크호스 [2010/10/22 23:45]  [댓글주소]  [수정/삭제]  [댓글쓰기]

    감사합니다.
    이번에 SQL 시험이 있다고 해서
    공부하려고 하는데 IT는 끝이 없네요.
    즐공하세요.!!