December 30, 2018

RDBMS meta-data

❑ Meta-data: The data to describe the data in the DB.
메타데이터: DB의 데이터를 설명하기 위한 데이터.


❑ MySQL, PostgreSQL: INFORMATION_SCHEMA(DB format. DB 형태.)
INFORMATION_SCHEMA.COLUMNS
PropertyData typeDescription
COLUMN_NAMEvarchar(64)The column's name.
칼럼의 이름.
TABLE_NAMEvarchar(64)The table's name to which the column belongs.
칼럼이 속해있는 테이블의 이름.
TABLE_SCHEMAvarchar(64)The database's name that contains the table to which the column belongs.
칼럼이 속해있는 테이블이 저장된 데이터베이스의 이름.




❑ SQLite: SQLITE_MASTER(table format. 테이블 형태.)
SQLITE_MASTER
PropertyData typeDescription
TYPEtextThe object type. 객체의 종류(table, view, trigger, index).
NAMEtextThe object's name
오브젝트의 이름.
TBL_NAMEtextThe name of a view or a table.
뷰 혹은 테이블의 이름.
SQLtextThe definition of the table. The SQL commands used when creating the table.
테이블의 정의문. 테이블 생성 시 사용된 SQL 명령어들.