Hey guys, I missed the point of needing the max and min table id, but if so, why didn't you use 'SELECT MAX(id), MIN(id) from table' ? Any how to get 5 random rows 'SELECT *, rand() as rand FROM table_name ORDER BY rand LIMIT 5'
Hey guys, I missed the point of needing the max and min table id, but if so, why didn't you use 'SELECT MAX(id), MIN(id) from table' ?
Any how to get 5 random rows
'SELECT *, rand() as rand FROM table_name
ORDER BY rand
LIMIT 5'