我正在尝试使用此 SQL 查询从具有特定成员的行中删除具有最新日期的表中的行。
此查询选择要删除的正确行:
SELECT *
FROM Swears
WHERE Date = (
SELECT MAX(DATE)
FROM Swears
WHERE Member = 36)
但是此查询不会删除该行。
DELETE
FROM Swears
WHERE Date = (
SELECT MAX(DATE)
FROM Swears
WHERE Member = 36)