ORA-24348: Update or Delete without Where ORACLE 报错 故障修复 远程处理

文档解释

ORA-24348: Update or Delete without Where

Cause: An update or delete was executed without where clause

Action: An OCI_SUCCESS_WITH_INFO is returned.

ORA-24348:没有WHERE子句的update/delete

官方解释

常见案例

使用以下SQL语句,试图仅使用UPDATE语句更新表中所有行:

UPDATE tablename SET col1 = ‘X’;

一般处理方法及步骤

要求将where子句添加到SQL语句中,以确定要更新的行,以避免更新全表数据,例如:

UPDATE tablename SET col1 = ‘X’ WHERE col2=’Y’


数据运维技术 » ORA-24348: Update or Delete without Where ORACLE 报错 故障修复 远程处理