Cookie Consent by Free Privacy Policy Generator Polipone
<agosto 2026>
lunmarmergiovensabdom
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

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

Tutor On-Line
Ciao, sono il tuo Tutor on-line. Come posso aiutarti? 12:48

Notifiche