mytable pid name field === ==== ===== 1 A1 0 2 A2 1 3 A3 1 4 A4 0 5 A5 0
This is my table structure. Here I want to se
Generally, using ORDER BY RAND() is not a good idea. Please read the text by Jan Kneschke, showing why: http://jan.kneschke.de/projects/mysql/order-by-rand/