摘要:
createTRIGGER [dbo].[OnInsert] ON [dbo].[Lock] after insertASbegindeclare @i int set @i=0 select @i=count(*) from [dbo].[Lock],inserted where Lock.SN=inserted.SN and Lock.IsLock='T' if(@i<>0) begin ROLLBACK TRANSACTION endend上述触发器的目的是在表Lock中插入一条数据时检测表中是否有和插入数据的SN号相同且IsLock为T的记录,如果有就回滚插 阅读全文
摘要:
后台代码:View Code 1 using System; 2 using System.Windows; 3 using System.Windows.Controls; 4 using System.Windows.Documents; 5 using System.Windows.Ink; 6 using System.Windows.Input; 7 using System.Windows.Media; 8 using System.Windows.Media.Animation; 9 using System.Windows.Shapes;10 using System.Wind 阅读全文