Database/MSSQL work
column
웨이칭
2020. 11. 11. 20:04
--column 추가
alter table customersTbl
add email nvarchar(50) null;
--column 삭제
alter table customersTbl
drop column email
--column 변경
alter table customersTbl
alter column addr nvarchar(20) null;
--제약조건 날리기
alter table customersTbl
drop constraint DF__customers__grade__36B12243
--제약조건 연습
create table testTbl(id int, name nvarchar(10));
--등록
alter table testTbl
add constraint PK_testTbl_id primary key (id)