Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Rand

Use of the Rand function to extract some random records from a database.


SELECT * FROM tabella WHERE ID = (rand() * (SELECT MAX(ID) FROM [myTable]))

 


Download code...


Print this page


 

Inizio pagina

risorse per webmaster