首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

删除多条数据的存储过程

2012-05-04 
求一个删除多条数据的存储过程?求一个删除多条数据的存储过程? 根据ID删除[解决办法]SQL codecreate proce

求一个删除多条数据的存储过程?
求一个删除多条数据的存储过程? 根据ID删除

[解决办法]

SQL code
create procedure a asdelete from tb where id=?execute a
[解决办法]
SQL code
Create proc Del_P (@ID int)SET XACT_ABORT on ;begin trandelete table1 where ID=@IDdelete table2 where ID=@IDcommit trango或用 begin trybegin tran...commit tranend trybegin catchselect ERROR_MESSAGE()rollback tranend catch 

热点排行