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';