union all结果表头中的"_u1."解决方法
解决
下面展示一些 内联代码片
。
(
select
*
from
tabel1
LIMIT
10
)
union all
(
select
*
from
tabel2
limit
40
)
结果表头为:
_u1.x1 _u1.x2 _u1.x3
我想只展示 x1 x2 x3 该怎么操作?
再加一层select
select
*
from
(
(
select
*
from
tabel1
LIMIT
10
)
union all
(
select
*
from
tabel2
limit
40
)
) t
即可解决上面问题
得到结果
x1 x2 x3