錯(cuò)誤號(hào):12142
錯(cuò)誤原因:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY `Order` ASC, `ID` DESC ) a,( select @rowNO :=0 ) b ) c WHERE rowno = -1' at line 1
錯(cuò)誤SQL語(yǔ)句:
select * from ( select (@rowNO := @rowNo+1) AS rowno, ID, Title_Ch, a.`Order` from ( SELECT ID, Title_Ch, `Order` FROM lxkj_archives where ViewFlagCh and SortID= ORDER BY `Order` ASC, `ID` DESC ) a,( select @rowNO :=0 ) b ) c WHERE rowno = -1