我想從oracle DB中獲取列值爲NULL的記錄。另外我在我的查詢中使用了unpivot。由於unpivot關鍵字不知何故NULL值未被選中。您可以請幫我關於如何在使用unpivot時獲得相同的行。 編輯: SELECT a.emp_id, a.emp_dept, b.emp_location
FROM employee a,
location b UNPIVOT (emp
我需要使用默認值,如果在sql中的值爲null其中條件如下。 SELECT sla.incident_generated_sla from eventedge_events_sla sla where e.client_id=sla.client_id and sla.priority_id=e.priority_id
我用下面的查詢但不工作。 (SELECT sla.incident_gen
我想用其他表中的其他列更新我的列。在這之前,我想首先使我的列(整數)無效。但是,下面的代碼不起作用。 (column_a:BIGINT; column_b:文本) UPDATE table1 SET column_a IS NULL
WHERE column_b = 'XXX';
ERROR:語法錯誤處或附近 「ISNULL」