create view
Posted in 2000
Topics: General Discussion
Please help me !
I want to create a view with an "union" statement.
Ex :
create wiew articles (a_id, a_name)
as
select a1_id, a1_name
from article1
union
select a2_id, a2_name
from article2
It doesn't work ... SYNTAX ERROR on the UNION statement...
What is the good syntax ???
Thanks
Simply try "view" not "wiew
Regards
Erik Stahlhut
www.isr.de
"Cyril MONDIERE" <cmondiere@rgminfo.com> schrieb im Newsbeitrag
news:8tj9a9$omf$1@wanadoo.fr...
> Please help me !
> I want to create a view with an "union" statement.
>
> Ex :
> create wiew articles (a_id, a_name)
> as
> select a1_id, a1_name
> from article1
> union
> select a2_id, a2_name
> from article2>
> It doesn't work ... SYNTAX ERROR on the UNION statement...
> What is the good syntax ???
>
> Thanks
>
>