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.
我们可以在嵌入式 sql (Pro*C) 中使用选择查询作为Decode()函数的第一个参数吗?
Decode()
我不确定嵌入式 sql,但我想它应该可以工作:
SELECT DECODE( ( SELECT 1 FROM dual ), 1, 'Yes', 'No' ) FROM dual Yes
你需要把SELECT括号括起来。
SELECT