Home > Database > Mysql Tutorial > body text

What is the usage of mysql top

coldplay.xixi
Release: 2020-10-09 14:37:44
Original
17566 people have browsed it

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 表名
Copy after login

in mysql. Instead, you should use

select * from 表名 limit 1,3
Copy after login

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

select * from 表名 limit 1, M
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template