lundi 8 juin 2015

MySQL random order only part of results

In a MySQL query, is it possible to get all the rows of a table, but have the last 5 rows random?

I need to show all the results of the table on a PHP page, but displaying the last 5 results in a random order.

I know it’s a strange question, but my client would like to do it this way…

Thanks!




Aucun commentaire:

Enregistrer un commentaire