【发布时间】:2014-09-16 16:55:45
【问题描述】:
语法不起作用并在 @rt:= 上返回错误 #1064 错误... 我不知道在哪里放置变量以便它工作。
UPDATE table
@rt:=@rt+quantity;
INNER JOIN (SELECT @rt:=0) AS init ON 1=1
SET status='1'
WHERE price<10
AND @rt<=22
带有 SELECT 的工作表 http://sqlfiddle.com/#!2/1f125c
【问题讨论】:
标签: mysql select join inner-join