bất cứ ai có thể cho tôi biết đâu là sai lầm trong truy vấn sauAlter bảng thêm nhiều cột MS SQL
ALTER TABLE Countries
ADD (
HasPhotoInReadyStorage bit,
HasPhotoInWorkStorage bit,
HasPhotoInMaterialStorage bit,
HasText bit);
ALTER TABLE Regions
ADD (HasPhotoInReadyStorage bit,
HasPhotoInWorkStorage bit,
HasPhotoInMaterialStorage bit
HasText bit);
ALTER TABLE Provinces
ADD (HasPhotoInReadyStorage bit,
HasPhotoInWorkStorage bit,
HasPhotoInMaterialStorage bit
HasText bit);
ALTER TABLE Cities
ADD (HasPhotoInReadyStorage bit,
HasPhotoInWorkStorage bit,
HasPhotoInMaterialStorage bit
HasText bit);
Alter table Hotels
Add
{
HasPhotoInReadyStorage bit,
HasPhotoInWorkStorage bit,
HasPhotoInMaterialStorage bit,
HasHotelPhotoInReadyStorage bit,
HasHotelPhotoInWorkStorage bit,
HasHotelPhotoInMaterialStorage bit,
HasReporterData bit,
HasMovieInReadyStorage bit,
HasMovieInWorkStorage bit,
HasMovieInMaterialStorage bit
};
tôi nhận được các lỗi sau đây:
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '('.
Msg 102, Level 15, State 1, Line 9
Incorrect syntax near '('.
Msg 102, Level 15, State 1, Line 15
Incorrect syntax near '('.
Msg 102, Level 15, State 1, Line 22
Incorrect syntax near '('.
Msg 102, Level 15, State 1, Line 29
Incorrect syntax near '{'.
có thể trùng lặp của [cách thêm nhiều cột vào bảng sql và thêm ràng buộc mặc định vào một trong số chúng?] (http://stackoverflow.com/questions/15184939/how-to-add-multiple-columns-to-sql -table-and-add-default-constraint-on-one-of-of) –