请帮忙看一下!!!!!

jackzhang168 2003-04-25 03:49:05
CREATE TRIGGER dbo.insert_subsidiarystuff ON dbo.st_subsidiarystuff
FOR INSERT AS
BEGIN
if (select count(*)
from st_stockpile_stuff
where st_stockpile_stuff.storage_no = inserted.storage_no
and st_stockpile_stuff.contract_no = inserted.contract_no
and st_stockpile_stuff.oc_number = inserted.oc_number
and st_stockpile_stuff.itemnumber = inserted.itemnumber
and st_stockpile_stuff.bomnumber = inserted.bomnumber
and st_stockpile_stuff.breadthtype = inserted.breadthtype ) = 0
begin

insert into st_stockpile_stuff
select storage_no,contract_no,oc_number,itemnumber,bomnumber,breadthtype,stockplace,
categoryno,'001',stockof_qty,0,stock_date,'',buyer_id,storekeeper,memo_stock
from inserted
end

END

错在哪?
...全文
870 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
guojing590 2003-04-25
  • 打赏
  • 举报
回复
我晕了
flyhot 2003-04-25
  • 打赏
  • 举报
回复
invalid object name dbo.stsubsidiarystuff!!!
无效的名称!!!!
th820901 2003-04-25
  • 打赏
  • 举报
回复
关注.....
every_one 2003-04-25
  • 打赏
  • 举报
回复
提示什么错误呀?贴出来看看
byfq 2003-04-25
  • 打赏
  • 举报
回复
up
jackzhang168 2003-04-25
  • 打赏
  • 举报
回复
帮帮忙呀!

1,079

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧