--1. 将结果插入临时表SELECT *INTO xxx FROM( SELECT TOP 1 a.FQTY,a.fseq FROM T_SAL_ORDERENTRY as a WHERE FQTY=5UNION ALL SELECT TOP 1 b.FQTY,b.fseq FROM T_SAL_ORDERENTRY as b WHERE FQTY=1) as c SELECT * FROM xxx --最初update-- UPDATE xxx-- SET FQTY = ISNULL((--