create table PlPingLun
(
PlplId int primary key identity(1,1),--评论(帖子评论)Id
PlplText nvarchar(4000),--评论(帖子评论)内容
PlplTime nvarchar(50),--评论(帖子评论)时间
PostId int foreign key references Post(PostId),--外键关联帖子id
UserId int foreign key references Usera(UserId),--外键关联用户id
PostCommentsId int foreign key references PostPingLun(PostCommentsId),--外键关联评论表ID 评论表 ID
)
SQL Server 创建语句
最新推荐文章于 2024-02-13 00:15:00 发布