基本上我有这个查询
SELECT *
FROM `transactions` a
WHERE Round(( tender1 - `change` ), 2) != (SELECT Round(Sum(total), 2)
FROM `transactions` b
WHERE b.trans_no = a.trans_no)
AND tender1 != 0
LIMIT 1
这很好并且返回一行但是如果我将语句更改为删除
DELETE FROM `transactions` a
WHERE Round(( tender1 - `change` ), 2) != (SELECT Round(Sum(total), 2)
FROM `transactions` b
WHERE b.trans_no = a.trans_no)
AND tender1 != 0
LIMIT 1
这将返回错误 1064 无效语法
有任何想法吗???