首页 > Linux操作系统 > Linux操作系统 > 修改明细的建立者名称
/*
功能:将mp10--款式结构组成,明细的建立者名称修改为主档的建立者名称。
主档表:vi_style_No_query, 明细表:style_stru
格式:sp_Modify_creater '鞋型编号' --(精确鞋型号)
作者:Sam
创建日期:2008-09-29
完成日期:2008-09-29
*/
if exists (select name from sysobjects where name='sp_modify_creater' and type='p')
drop procedure sp_modify_creater
go
create procedure sp_Modify_creater
@style_no char(16)
as
begin
update a set a.ulmodifyer=a.crter, a.crter=b.crter
from style_stru a,vi_style_No_query b
where a.style_no=b.style_no and a.style_no=@style_no
end
go
-- exec sp_modify_creater 'C080606-6'
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/729024/viewspace-564858/ ,如需转载,请注明出处,否则将追究法律责任。