I am creating a select query with union of three tables...... like this
select a as A,b as B c as C where c = x union
select b as A,d as B e as C where e = y and d = a union
select f as A,g as B,h as C
和质询的结果一样:
A B C
===========
1 abc ...
55 def ...
1 sas ...
so I want to have a column that count the number of row, just to prevent the repetition of identifier. Somthing like this
Row A B C
================
1 1 abc ...
2 55 def ...
3 1 sas ...
......
我的问题是如何能够做到这一点?