1
我试图返回空或虚拟字符串,如果选择查询返回null
。我尝试使用NVL(colum,'dummy')
中的虚拟值,但我仍然得到no data found
错误。 下面是我的尝试:Oracle nvl无法处理空字符串,即使使用后不为空
SELECT de.destination INTO l_sub_ent
FROM dest de
where de.destination='somevalue' AND de.destination IS NOT NULL;
2.
SELECT COALSECE(de.destination, 'dummy') INTO l_sub_ent
FROM dest de
where de.destination ='some value';
SELECT NVL(de.desc_en, 'dummy') INTO l_sub_ent
FROM dest de
where de.destination ='some value';