我想从下面的查询输出中获取单行输出
select @@hostname,count(*) "RECOMMENDED_PATCHES" from test.PATCHES
union all
select @@hostname,count(*) "PATCH_VERSIONS" from test.PATCH_VERSIONS
output:
ct-test-02 79
ct-test-02 0
expected output:
ct-test-02 79 0
我想从下面的查询输出中获取单行输出
select @@hostname,count(*) "RECOMMENDED_PATCHES" from test.PATCHES
union all
select @@hostname,count(*) "PATCH_VERSIONS" from test.PATCH_VERSIONS
output:
ct-test-02 79
ct-test-02 0
expected output:
ct-test-02 79 0
1 个回答