|
|||
|
Is there any way to use "ORDER BY RANDOM()" in Zend_Db? I tried it in Zend_Db_Select, I tried it in plain Zend_Db, I tried it with Zend_Db_Expr and it all ended with the same effect - no effect that is.
Or maybe someone knows any other way to bring the same functionallity, which is selecting a bunch of random rows from a database? Thanks. |
|
|||
|
OK, I found out how to do it - plain Zend_Db + Zend_Db_Expr is the answer.
PHP Code:
This won't work: PHP Code:
I suppose making something like that PHP Code:
Zend_Db looks nice on a surface, but inside there's a lot of such small nitpicks you have to remember about. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|