pl/sql多条查询语句结果导出

图片说明
有四条查询统计的语句,现在我想把结果导出去只能手动一个个复制出去,有没有办法能一次性全部导出去。

看到中间位置有一行操作图标按钮没,靠后的几个应该有个export,可以导出数据吧

用union all连接四条SQL。
select count(discnt_code) from ucr_param.td_b_discnt where discnt_code like '30%'
union all
select count(discnt_code) from ucr_param.td_b_discnt where discnt_code like '31%'
union all
select count(discnt_code) from ucr_param.td_b_discnt where discnt_code like '32%'
union all
select count(discnt_code) from ucr_param.td_b_discnt where discnt_code like '33%'