錯誤號:12142
錯誤原因: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
錯誤SQL語句:
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