1. Create 문
create table [schema].[table](
[col_nm] [type] [default ~] [not null]
work_dt char(8) default to_char(sysdate, 'yyyyMMdd') not null,
finish_yn char(1) not null,
err_desc varchar(4000),
create_dtm timestamp default sysdate not null
)
2. 테이블 속성 보기
desc [schema].[table];
3. 테이블 Comment
comment on table [schema].[table] is 'table_nm'; -- table's comment
comment on column [schema].[table].[column] is 'col_nm'; --col's comment
'언어 > SQL' 카테고리의 다른 글
[MySQL] 조건에 맞는 사원 정보 조회하기 (0) | 2024.06.03 |
---|---|
[postgreSQL] 사용자, DB, schema, table 생성 및 문법 (0) | 2024.05.20 |
[MariaDB] 중복, NULL, 유효하지 않은 고객 제거하는 쿼리 (0) | 2024.02.01 |
[Oracle] 없어진 기록 찾기 (0) | 2023.07.01 |
[Oracle] 조건에 부합하는 중고거래 댓글 조회하기 (0) | 2023.06.19 |