变更采购单的供应商
/* 供应商编号:vendermID
采购单建立者:creater
*/
select * from mat_cg
where creater='苏丽' -- pno='cc080913521'
select * INTO MAT_CG_BACKUP from mat_cg
where creater='谢丽琼' and vendermid='SYB'
/*
-- 将谢丽琼所建立采购单从"丝印部"变成"商标厂"
UPDATE MAT_CG SET VENDERMID='SB02'
where creater='谢丽琼' and vendermid='SYB'
*/
SELECT * FROM MAT_CG
where creater='谢丽琼' and vendermid='SB02'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/729024/viewspace-564859/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/729024/viewspace-564859/