sql decode()函数

xiaoxiao2026-09-14  10

select decode(1,1,1,0) FROM DUAL; select decode('1','1',1,0) FROM DUAL; 如果第一个表达式参数的结果等于第二个参数则函数返回第三个参数,反之则返回第四个参数 select decode(true,true,1,0) FROM DUAL; 错了,因为sql中没有boolean类型的变量
转载请注明原文地址: https://www.6miu.com/read-5052662.html

最新回复(0)