0

How to get a random row from a table in DBFlow?

In SQLite I would simply write the query as:

select * from table_name ORDER BY RANDOM() LIMIT 1;

Whats the equivalent for it? I couldn't find anything and OrderBy accepts only column values. Thank you.

My question is about DBFlow ORM for Android, not for SQLite.

Arshad Mehmood
  • 409
  • 3
  • 14

0 Answers0