set @t1=(select sum(a) from order where type='1') + (select sum(b) from order2 where code='3')

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply