查看完整内容
已经解决了,是在SQLITE运行,要2个子查询,SQLITE语法太诡异了!
update prdt set up_xs =(select hs_tf.up/hs_tf.qty from hs_tf where prdt.prd_no= hs_tf.prd_no and hs_tf.hs_no=@核价单号)
WHERE prdt. prd_no = ( SELECT prd_no FROM hs_tf WHERE hs_tf.prd_no=prdt.prd_no and hs_tf.hs_no=@核价单号)