Select*fromEmployee;+------+--------+|Id |Name |+------+- -------+|100 |Ram ||200 |Gaurav||300 |Mohan&nb"> How can we get all records from a specific MySQL table?-Mysql Tutorial-php.cn

How can we get all records from a specific MySQL table?

王林
Release: 2023-08-29 17:45:11
forward
1087 people have browsed it

我们如何从特定的 MySQL 表中获取所有记录?

We can useSELECT * from table_name;query to get all records from the MySQL table. The example is as follows, get all records from "Employee" table -

mysql> Select * from Employee; +------+--------+ | Id | Name | +------+--------+ | 100 | Ram | | 200 | Gaurav | | 300 | Mohan | +------+--------+ 3 rows in set (0.00 sec)
Copy after login

The above is the detailed content of How can we get all records from a specific MySQL table?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!