Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. WITH Rows AS (SELECT *,
  2. ROW_NUMBER() OVER (ORDER BY userid asc) as [Row]
  3. FROM users
  4. WHERE 1=1
  5. )
  6. SELECT * FROM Rows
  7. WHERE Row >= 1 and Row <= 10
  8.  
  9. 1064 - 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 'Rows AS (SELECT *, ROW_NUMBER() OVER (ORDER BY userid asc)
  10. FROM users
  11. ' at line 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement