3
What is the correct way to make an unspecified (random) selection using PHP + Sqlserver, since Microsoft queries do not accept ORDER BY RAND() from MYSQL.
Using MYSQLI would be like this:
$sql ="SELECT * FROM Tabela where campo=‘algum' order by rand()”;
This is not gonna work.
– bfavaretto
If you restrict where you are by the number of columns, it should work.
– Andre Mesquita
But sorting by a random column is not the same thing as randomly sorting.
– bfavaretto
I understand your explanation.
– Andre Mesquita
Thank you very much, but unfortunately it didn’t even work for the number of columns. It worked with ORDER BY NEWID()
– denis