Home  >  Article  >  Database  >  What is the usage of mysql top

What is the usage of mysql top

coldplay.xixi
coldplay.xixiOriginal
2020-10-09 14:37:4417567browse

Usage of mysql top: The usage of select top in mysql is different from that of mysql server. To query the first 3 pieces of data, the code is [select * from table name limit 1,3].

What is the usage of mysql top

Usage of mysql top:

The usage of select top in mysql is different from that of mysql server.

When querying the first three pieces of data, you cannot use

select top 3 * from 表名

in mysql. Instead, you should use

select * from 表名 limit 1,3

to query the first M pieces of data. Then let the first page display M Article

select * from 表名 limit 1, M

Related free learning recommendations: mysql number Database(Video)

The above is the detailed content of What is the usage of mysql top. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn