SELECT * FROM user LIMIT (SELECT group_limit FROM groups WHERE groupid = 7471);
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- sqlyog export query result as csv
This is from the MySQL Database Knowledge base:
For your query to work, you will need to write it as a prepared statement, and then execute that.