To get random questions, you need to use the rand() in SQL SELECT random rows statement. Syntax1 : Select All Column Random Rows. SELECT * FROM tablename ORDER BY RAND();

2665

MySQL supports the LIMIT clause to select a limited number of records, while Oracle uses FETCH FIRST n ROWS ONLY and ROWNUM . SQL Server / MS 

Query OK, 10 rows affected (0.29 sec) mysql> SELECT marke, modell, arsmodell FROM bilar; -10,7 +10,7 @@ import (. ) -66,10 +66,10 @@ func addContainer(category_id int, flat, tree Query("SELECT id, url, title, category_id, timestamp, notes FROM news WHERE -132,7 +132,7 @@ func convertSqlToNewsContainer(rows *sql. Inlägg Skrivet: 2013-09-06 10:19 Ämne: PHP SELECT data problem, Citera $sql = "SELECT * FROM Home WHERE Home_topic = Home_topic";