Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要做一个查询输出
使用表格,我想要以下报告,格式为:
----------- ------- ids < 90000 100,000 ids > 90000 100,000
有什么想法吗?
我们需要你的表结构...
或者你使用:;-)
SELECT CONCAT('ids', ' > ','9000'),'100,00'
你不能做这样的事情:
(SELECT 'ids < 90000', COUNT(*) FROM TABLE WHERE ID < 9000) UNION (SELECT 'ids >= 90000',COUNT(*) FROM TABLE WHERE ID >= 9000)