Cookie Consent by Free Privacy Policy Generator
Privacy
Polipone
<settembre 2024>
lunmarmergiovensabdom
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
Immagini

ACCESS - Select Random

Per selezionare un record casuale da una tabella, è necessario che questa abbia un campo chiave autoincrementale. La sintassi della select è la seguente:

 

SELECT TOP 1 FIELD1, FIELD2

FROM TABLE1

order by rnd(INT(NOW*ID)-NOW*ID)

 

Dove ID è il campo chiave della TABLE1

Notifiche