Per this previously asked question it's my understanding that I could run a query like this in mysql version 5.5.6+:
set @limit_start=10;
set @limit_offset=10;
select
ID,
AGE,
GENDER
from
PLAYER
limit
@limit_start, @limit_offset;
But when I run it like so, I get an error.
mysql> set @limit_start=10;
Query OK, 0 rows affected (0.00 sec)
mysql> set @limit_offset=10;
Query OK, 0 rows affected (0.00 sec)
mysql> select
-> ID
-> from
-> PLAYER_GAME_RESULT
-> limit
-> @limit_start, @limit_offset;
ERROR 1064 (42000): 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 '@limit_start, @limit_offset' at line 6
This is me checking the mysql version
mysql> SELECT VERSION();
+-----------+
| VERSION() |
+-----------+
| 5.6.21 |
+-----------+