oracle存储过程中带空值的输入怎么写?COALESCE()函数用错了吗?

oracle存储过程中带空值的输入怎么写?COALESCE()函数用错了吗?
(start_time in date,end_time in date,name in nvarchar2,tname in nvarchar2,cusers out sys_refcursor)
as

begin

open cusers for select * from C_USERS where logintime >= COALESCE(start_time,logintime)
and logintime
tony2008liu 1年前 已收到1个回答 举报

nanjingxiaolang 幼苗

共回答了16个问题采纳率:100% 举报

空值 ,你直接用NVL不就行了.
open cusers for select * from C_USERS where logintime >= NVL(start_time,logintime)
and logintime

1年前 追问

2

tony2008liu 举报

是这样的,谢谢

举报 nanjingxiaolang

System.out.println("是的");
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 18 q. 0.043 s. - webmaster@yulucn.com