我有一个查询行号的sql
SELECT * from (Select id,(@rowNum:=@rowNum+1) as rowNo From spread_source, (Select (@rowNum :=0) ) b order by id asc) as a
但是执行的时候被转义成了
SELECT * from (Select id,(?:=?+1) as rowNo From spread_source, (Select (? :=0) ) b order by id asc) as a
请问这该怎么处理呢