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.
我有一种情况需要做类似的事情
select 2, id from users;
我认为这至少适用于 Oracle,但它不适用于 Mysql。有任何想法吗?
我认为您需要为任意值指定一个名称:
SELECT 2 AS arbitrary_value, id FROM users;
你的要求没问题。也许您应该更准确地定义“不起作用”。