我试图在postgres中使用NVL函数。coalesce(cast( $1 as decimal), cast( $2 as decimal))但是,下面的例子对我来说是失败的:
testdb=> SELECT nvl( sum(balance), 0 ) as b FROM db.bank但我仍然有失败<
我正在尝试使用nvl函数获取Oracle数据库中的记录,但没有返回任何记录。USER_ID列中当前没有空值。问题1 :Select * from "Schemaname"."tablename" where nvl("USER_ID",'aaa') in('TestUser')
问题2:Select * from "schemaname"."tabl