기본 콘텐츠로 건너뛰기

Alter table 에서 modify 와 change 의 차이 :: SQL Server

두 개의 차이를 모르는 경우가 많아서 정리합니다. 

modify는 필드의 속성값을 바꿀때 사용하구요..
change는 필드명을 바꿀떄 사용합니다. 

alter table tbbs modify bNote varchar(2000) NULL;

alter table tbbs change bNoteOrg bNoteNew varchar(2000) NULL;
change에는 원래 필드와 바꾸고 싶은 필드명을 넣어서 필드명을 바꾸는 것이죠~



더 많은 SQL Server 팁을 보려면 



giip :: Control all Robots and Devices! Free inter-RPA orchestration tool! https://giipasp.azurewebsites.net/

댓글