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

c# - IMAP GMAIL getting folder list problem -

CUDA shared memory -