读书人

消息 102级别 15状态 1第 7 行

发布时间: 2012-05-22 18:18:54 作者: rapoo

消息 102,级别 15,状态 1,第 7 行 ')' 附近有语法错误。
/*==============================================================*/
/* Table: Friend */
/*==============================================================*/
create table Friend (
Host_ID ID not null,
Friend_ID ID not null,
Friend_Catagory smallint not null,
Remark_Name Online_Name not null,
constraint PK_FRIEND primary key nonclustered (Host_ID, Friend_ID)
)
go

/*==============================================================*/
/* Index: Relationship_17_PK */
/*==============================================================*/
create unique clustered index Relationship_17_PK on Friend (

)
go

/*==============================================================*/
/* Index: Relationship_20_FK */
/*==============================================================*/
create index Relationship_20_FK on Friend (
Host_ID ASC
)
go

/*==============================================================*/
/* Index: Relationship_21_FK */
/*==============================================================*/
create index Relationship_21_FK on Friend (
Friend_ID ASC
)
go

alter table Friend
add constraint "FK_FRIEND_FRIEND->U_USERS" foreign key (Friend_ID)
references Users (User_ID)
go

alter table Friend
add constraint "FK_FRIEND_FRIEND->U_USERS" foreign key (Host_ID)
references Users (User_ID)
go


建好友表的时候出来的问题……
改了一天都不知道怎么回事……求救啊!!!!!


[解决办法]
可能是中文符号惹的祸,看是不是有中文的空格了

读书人网 >SQL Server

热点推荐