Posts Tagged ‘mssql’

Fetch Random rows from Database (MySQL, Oracle, MS SQL, PostgreSQL)

Fetch Random rows from Database (MySQL, Oracle, MS SQL, PostgreSQL)
Ever thought why would one need to fetch random rows from a database table? You may want to display some random information (like articles/pages/links) to your user. I had a requirement wherein I had to fetch 10 random rows from MySQL database and display it on screen. I used following simple query for retrieving random records ...
Copyright © 2012 ViralPatel.net. All rights reserved.