union all放在语句结尾是什么意思?

select 'eastic_jggqxxb',count(1),dis_data_date from eastic_jggqxxb group by dis_data_date union all

这是一段可以运行的语句,为什么union all在结尾啊?

执行会报错的。应该连接有其他查询

在union all后面打个分号;看语法还能通过编译吗

你的说法有偏差,不是把所有表内部的数据全部输出,是连接union all上下的查询语句的结果