try:SELECT *
FROM [select id,a from b105q where id=1 union select id,b from b105q where id=1 union
select id,c from b105q where id=1 union select id,d from b105q where id=1
union select id,a from b105q where id=2 union select id,b from b105q where id=2
union select id,c from b105q where id=2 union select id,d from b105q where id=2
union select id,a from b105q where id=3 union select id,b from b105q where id=3
union select id,c from b105q where id=3 union select id,d from b105q where id=3]. AS [%$##@_Alias]
WHERE not isnull(a);
[此贴子已经被作者于2006-5-9 14:02:14编辑过]
|