写清楚表结构和要求,也许可以,看你的“一些update和delete操作”是否复杂一个例子:select 
a,b,
case c when 1 then 'C1' when 2 then 'C2' else 'else' end as c,   ---update操作
d,
a*x-b as x  ---update操作
from (
select a.a,a.b,a.c,a.d,b.x from test1 a,test2 b
where a.id=b.id
and a.flag=1
) as x
where not (a=1 and b=2)   ---delete操作