update 卷烟销售表
set 销售金额=销售数量*销售单价
where 卷烟品牌 in(select 卷烟品牌 from inserted)declare @卷烟品牌 varchar(40)
set 卷烟品牌 =(select 卷烟品牌 from inserted)
declare @销售数量 money
set 销售数量=(select 销售数量 from inserted)
update 卷烟库存表
set 库存数量=库存数量-@销售数量
库存金额=(库存数量-@销售数量)*库存单价
where 卷烟品牌=@卷烟品牌消息 102,级别 15,状态 1,过程 T_INSERT_卷烟销售表,第 24 行
'=' 附近有语法错误。
消息 102,级别 15,状态 1,过程 T_INSERT_卷烟销售表,第 26 行
'=' 附近有语法错误。
消息 102,级别 15,状态 1,过程 T_INSERT_卷烟销售表,第 29 行
'库存金额' 附近有语法错误。
set 销售金额=销售数量*销售单价
where 卷烟品牌 in(select 卷烟品牌 from inserted)declare @卷烟品牌 varchar(40)
set 卷烟品牌 =(select 卷烟品牌 from inserted)
declare @销售数量 money
set 销售数量=(select 销售数量 from inserted)
update 卷烟库存表
set 库存数量=库存数量-@销售数量
库存金额=(库存数量-@销售数量)*库存单价
where 卷烟品牌=@卷烟品牌消息 102,级别 15,状态 1,过程 T_INSERT_卷烟销售表,第 24 行
'=' 附近有语法错误。
消息 102,级别 15,状态 1,过程 T_INSERT_卷烟销售表,第 26 行
'=' 附近有语法错误。
消息 102,级别 15,状态 1,过程 T_INSERT_卷烟销售表,第 29 行
'库存金额' 附近有语法错误。
set 销售金额=销售数量*销售单价
where 卷烟品牌 in(select 卷烟品牌 from inserted)declare @卷烟品牌 varchar(40)
set @卷烟品牌 =(select 卷烟品牌 from inserted)
declare @销售数量 money
set @销售数量=(select 销售数量 from inserted)
update 卷烟库存表
set @库存数量=库存数量-@销售数量
库存金额=(库存数量-@销售数量)*库存单价
where 卷烟品牌=@卷烟品牌
update 卷烟销售表
set 销售金额=销售数量*销售单价
where 卷烟品牌 in(select 卷烟品牌 from inserted)declare @卷烟品牌 varchar(40)
set @卷烟品牌 =(select 卷烟品牌 from inserted)
declare @销售数量 money
set @销售数量=(select 销售数量 from inserted)
update 卷烟库存表
set 库存数量=库存数量-@销售数量,
库存金额=(库存数量-@销售数量)*库存单价
where 卷烟品牌=@卷烟品牌
'库存金额' 附近有语法错误。
set @卷烟品牌 =(select top 1 卷烟品牌 from inserted)
declare @销售数量 money
set @销售数量=(select top 1销售数量 from inserted)
update 卷烟库存表
set 库存数量=库存数量-@销售数量
库存金额=(库存数量-@销售数量)*库存单价
where 卷烟品牌=@卷烟品牌