We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How conduct random queries pdo

In example:

$robots = Robots::find(
    array(
        "type = 'virtual'",
        "order" => "name",
        "limit" => 100
    )
);

But I want to ID a random query. How to write?

But I want to ID a random query.

Could you please elaborate?



9.6k

If the table has 600 records, I think the n random read, how to write

But I want to ID a random query.

Could you please elaborate?