반응형 mssql 컬럼1 테이블에 필드 삭제, 추가하기 테이블에 필드 삭제, 추가하기 필드 추가하기 alter table [테이블명] add 필드명 varchar(255) not null default ' ' 필드삭제하기 alter table [테이블명] drop column 필드명 삭제시 종속문제가 생기면 mssql에서 [제약조건]에 가서 제약 조건을 먼져 지운다 에러문구에서 제약조건 명을 복사한다 alter table p_menu_header drop constraint DF__p_menu_he__branc__2BF3987F 제약조건 삭제 sp_columns p_menu_header 컬럼을 확인하자 예제) alter table p_menu_header add branch_type int not null default(0) ------------------.. 2007. 12. 13. 이전 1 다음 반응형