Create table FavoriteDish
(
FavID int identity (1,1) primary key not null,
DishID int references Dishes(DishID) not null ,
CelebrityName nvarchar(100) nonclustered not null
)
이 결과는 Incorrect syntax near the keyword 'nonclustered'
입니다. 테이블 만들기 구문에 대한 MSDN 도움말을 참조했습니다. 여기에 뭐가 잘못 됐는지 나는 잘 모르겠다.테이블 만들기에서 비 클러스터형 인덱스를 만드는 방법은 무엇입니까?
([SQL 서버와의 CREATE TABLE 문 내의 클러스터되지 않은 고유하지 않은 인덱스를 만들기]의 가능한 중복 http://stackoverflow.com/questions/6193293/create-a-nonclustered-non-unique-index -within-the-create-table-statement-with-sq) – AaronLS
@AaronLS이 특정 질문은 당신이 가리키는 질문보다 먼저 먼저 질문해야합니다. 어느 쪽이 당신이 가리키고있는 사람이이 하나의 복제본이라고 부를 수 있다는 것을 의미합니다. –