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.
在 mysql 中,我可以编写一个类似“Select a.field1 > a.field2 from a”的查询,我会得到一个 0 和 1 的结果集
我尝试在 oracle 中编写类似的查询,但它不起作用。如何使用 oracle 获得类似的结果集?
尝试
Select CASE WHEN a.field1 > a.field2 THEN 1 ELSE 0 END from a