Selecting a Random Row From Oracle


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



Copy this code and paste it in your HTML
  1. SELECT COLUMN FROM
  2. ( SELECT COLUMN FROM TABLE
  3. ORDER BY dbms_random.value )
  4. WHERE rownum = 1

Report this snippet


Comments


You need to login to view comments.