jeudi 31 mars 2016

Shuffle database id

I have a database with songs. Every song have an unique id. How I can generate a random unique value for every id in database?

Example:

id | song name    
1  | song1  
2  | song2  
3  | song3

After shuffle

id | song name    
45 | song1  
96 | song2  
10 | song3  

Any idea?




Aucun commentaire:

Enregistrer un commentaire