How to make a request to get random () lines with a limit of 3 lines?
I tried but get an error:
myQueryBuilder.orderBy("random()", true);
I solved this with the orderByRaw(...) method:
orderByRaw(...)
myQueryBuilder.orderByRaw("RANDOM()");
Source: https://habr.com/ru/post/949316/More articles:How to use live camera feed as activity background? - androidWhy does Java G1 gc spend so much time scanning RS? - garbage-collectionWhy does Integer not represent NaN in Java? - javaString "regression line" from multiple regression in R - rHow to wrap the output of my query with a single quote - sqlC # Is it possible to make a groupBox header as a toggle? - c #How can I get support without compiler in Visual Studio 2012 Release 2? - cssChanging user properties in powershell - powershellHow to use slidify with impress.js - rC ++ 11 std :: async in Android NDK not working - androidAll Articles