请问怎么写这个视图? ------解决方案-------------------- select xx,yy from A1
union all
select ee,qq from A1
union all
select ss,xx from A1 ------解决方案--------------------
这样呢:
CREATE VIEW dbo.view_xxx(操作类型,操作金额)
as
select XX,YY from A1
union all
select EE,QQ FROM a2
UNION ALL
SELECT SS,XX FROM A3
go