存储过程--事务
摘要:
--ALTER PROCEDURE [dbo].[tb_ADD]@a int,@b(20),AS BEGIN --开始事务 begin tran if exists(select ID from tbwhere a=@a and b=@b ) begin rollback tran return -1--该记录已存在. end INSERT INTO [tb]( [a],[b] )VALUES... 阅读全文
posted @ 2010-05-20 16:37 cn2025 阅读(173) 评论(0) 推荐(0)
浙公网安备 33010602011771号