오라클 각종 메타데이터 조회


오라클 각종 메타데이터 조회

/* 1. 해당 테이블의 기본키 정보 */ select a.table_name, b.column_name, b.position, a.status from all_constraints a, all_cons_columns b where 1=1 and a.owner = 'SMARTFARM' and a.table_name = 'TB_USER_INFO' and a.table_name = b.table_name and a.constraint_type = 'P' and a.constraint_name = b.constraint_name and a.owner = b.owner order by b.position asc ; /* 2. 해당 사용자의 테이블 리스트 및 레코드 개수 */ select table_name, n..


원문링크 : 오라클 각종 메타데이터 조회