Closed omphteliba closed 10 years ago
try with:
"#ORDER"=>"RAND()"
then it will not quote the SQL Command... :)
Ah, ok. Thx!
This solution does not work with the latest version of medoo.
Esto es para la última versión la dejo aquí para seguir el hilo
'ORDER' => Medoo::raw('RAND()')
Si tienen una clase y dentro incluye su base de datos seria algo asi 'ORDER' => $this->db->raw('RAND()')
Hi,
i can't get "ORDER RAND()" to work. When i add it with
"ORDER"=>"RAND()"
the query produced looks something like that:
SELECT "screen_name" FROM "users" WHERE "screen_name" != '' ORDER BY "RAND" LIMIT 100
but i want "ORDER BY RAND()"
Am i doing it wrong?