How to select the first five high number from my table for example: bid_table > 10 customers enter bid, and the query need to give only the five high bid from this 10 customers
thanks Yaniv
SELECT bid FROM bid_table
ORDER BY bid DESC
LIMIT 5;
The limit clause gives you just five results. The order by and desc parts give the results from highest to lowest.
SELECT * FROM bid_table ORDER BY bid DESC LIMIT 5;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.