【触发器】基础资料短代码{wy}
日志
/ 已经公开 2010年3月11日 15:48
if exists(select * from sysobjects where name = 'trj_item_insert_update') drop trigger trj_item_insert_update
go
create trigger trj_item_insert_update
on t_item
for update ,insert
as
if update(fshortnumber)
begin
if exists(select a.fshortnumber,count(a.fshortnumber)
from t_item a inner join inserted b on a.fitemclassid = b.fitemclassid and a.fshortnumber=b.fshortnumber
group by a.fshortnumber
having count(a.fshortnumber)>1)
begin
raiserror('基础资料短代码重复',16,1)
rollback tran
end
作者: 所属归类: ,
请登录后再发表评论以赚取更多积分
郑重声明:资讯 【【触发器】基础资料短代码{wy}】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【
在线投诉
】,我们审核后将会尽快处理。
——
相关资讯
——
椭圆封头报价
2018/2/14
黑侠蜘蛛池好吗
2017/1/15
郑州xx肝癌哪家医院好
2015/10/23
优惠的健身器材涂装烤漆生产线供销——福建健身器材涂装烤漆线
1900/1/1
晒版机阿里巴巴santongjixie的博客BLOG
2010/1/16
南洋污泥烘干机祝贺郑州祭祖大典今天开幕7_nanyangfei7的空间_百度空间
2010/4/17
转基因食物到底能不能吃- Chi66.com
2010/4/20
家中哪里xx最多- 九天的日志- 网易博客
2010/4/21
硬盘病毒,硬盘驱动器无法打开,怀疑病毒,请大师Zhijiao | 九零电脑园
2010/5/19
我省西瓜春播一般在3月中下旬至4月初阿里巴巴tianqiqsd的博客BLOG
2010/5/28
{dy}幅画_镜子里的妖精_新浪博客
2010/6/15
家长选择羽毛球拍的误区! | 羽毛球培训|游泳培训|网球培训|高尔夫培训 ...
2010/7/9
elkelake是什么牌子
2014/11/30