Selecting a Random Row In PostgreSQL


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT COLUMN FROM TABLE
  2. ORDER BY RANDOM()
  3. LIMIT 1

Report this snippet


Comments


You need to login to view comments.