postgresql - Selecting random rows -


hi all, requirement simple.i want select random rows table.

for example table having 10 rows want select 3 rows randomly.is there way in psql.

use random function.

select * tablename order random() limit 3; 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -