Reputation: 4187
I using sql in php, but, result not show:
test(id, name, type, category_id);
and my sql is:
select top 10( id, name) from test order by NewId()
How tio fix it
Upvotes: 0
Views: 94
Reputation: 21957
Example from this post:
SELECT * FROM `table_name` ORDER BY RAND() LIMIT 10;
Upvotes: 1
Reputation: 100175
SELECT * from test ORDER BY RAND() LIMIT 10
Hope it helps
Upvotes: 0