C
Cicada
I cannot UNION tables inside SQL's CREATE VIEW command. An error message is
shown:
"Cannot use UNION inside Sub-Query"
How to break through this limitation?
My program like this:
"CREATE VIEW UUU (AID, Start,NAME) AS SELECT AID,1 as Start, mid(NAME,1,3)
as NAME FROM T1 UNION ALL SELECT AID, 2 as Start, mid(NAME,4,3) as NAME from
T1 UNION ALL SELECT AID,3 as Start, mid(NAME,7,3) as NAME FROM T1 ORDER BY
AID,Start"
shown:
"Cannot use UNION inside Sub-Query"
How to break through this limitation?
My program like this:
"CREATE VIEW UUU (AID, Start,NAME) AS SELECT AID,1 as Start, mid(NAME,1,3)
as NAME FROM T1 UNION ALL SELECT AID, 2 as Start, mid(NAME,4,3) as NAME from
T1 UNION ALL SELECT AID,3 as Start, mid(NAME,7,3) as NAME FROM T1 ORDER BY
AID,Start"