chengli(提问者)USE [进销存升级版]
GO
ALTER TABLE [dbo].[入库单] WITH CHECK ADD CONSTRAINT [入库单_FK02] FOREIGN KEY([经手人])
REFERENCES [dbo].[员工] ([YID])
ON UPDATE CASCADE
GO
ALTER TABLE [dbo].[入库单] CHECK CONSTRAINT [入库单_FK02]
GO
EXEC sys.sp_addextendedproperty @name=N\'MS_ConstraintText\', @value=N\'因为表“入库单”包含相关记录,所以无法删除该记录。\' , @level0type=N\'SCHEMA\',@level0name=N\'dbo\', @level1type=N\'TABLE\',@level1name=N\'入库单\', @level2type=N\'CONSTRAINT\',@level2name=N\'入库单_FK02\'
GO
-----上面是数据库约束,我也看不懂