关于PLSQL中null的问题
答案:2 悬赏:60
解决时间 2021-01-08 06:31
- 提问者网友:凉末
- 2021-01-07 12:34
关于PLSQL中null的问题
最佳答案
- 二级知识专家网友:山河有幸埋战骨
- 2021-01-07 12:52
使用IS NULL/IS NOT NULL判断是否为NULL。
if name1 is null then
if name1 is not null then
if name1 is null then
if name1 is not null then
全部回答
- 1楼网友:佘樂
- 2021-01-07 13:49
不要用存储过程,用一个函数。
select isnull(name1,'YES') from tableName
或者
select case when name1 is null then 'YES' else name1 end as name1
from tableName
够简单吧~~
1. isnull(这个值,然后你要填的值)
2.用了 case when then else 函数~
select isnull(name1,'YES') from tableName
或者
select case when name1 is null then 'YES' else name1 end as name1
from tableName
够简单吧~~
1. isnull(这个值,然后你要填的值)
2.用了 case when then else 函数~
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯