我的表格是这样创建的:
CREATE TABLE test(
num1 INT,
num2 INT,
PRIMARY KEY(num1, num2)
);
我的删除查询应该是什么样的?
使用
DELETE FROM test WHERE num1=1 AND num2=2;
仅导致此错误消息:
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.
另外,在你提问之前,我确实知道如何关闭安全更新模式,但这不能回答我的问题。