diff --git a/sqlor/mysqlor.py b/sqlor/mysqlor.py index 53bd9d5..c864602 100755 --- a/sqlor/mysqlor.py +++ b/sqlor/mysqlor.py @@ -72,7 +72,7 @@ class MySqlor(SQLor): return tuple(d) def pagingSQLmodel(self): - return """select * row_number() over(order by $[sort]$) as row_num_ from (%s) A limit $[from_line]$, $[rows]$""" + return """select *, row_number() over(order by $[sort]$) as row_num_ from (%s) A limit $[from_line]$, $[rows]$""" return """select * from (%s) A order by $[sort]$ limit $[from_line]$,$[rows]$"""