Is there an alternative to TOP in MySQL?

前端 未结 5 2181
慢半拍i
慢半拍i 2020-11-28 15:19

I want to know the alternative of the TOP keyword as in MySQL. I have read about TOP in SQL Server.

Is there any alternative to this in MySQL, or any other method i

5条回答
  •  难免孤独
    2020-11-28 15:34

    yes, there is the limit clause.

    Example:

        SELECT * FROM `your_table` LIMIT 0, 10 
    

    This will display the first 10 results from the database.

提交回复
热议问题