伙计们,在 DB2 9.x 中,delete 语句正常工作并在特定行存在时给出成功的返回码。但如果该行不存在,则返回非零
即说EmployeeTable 不包含employeeID 1234
db2 "delete from EmployeeTable where employeeID = 1234"
它给出的输出如下。
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000
如果没有行,是否有返回成功/零返回码?