How can we fetch all the records from a particular MySQL table?

MySQLMySQLi Database

We can fetch all the record from a MySQL table by using SELECT * from table_name; query. An example is as follows, fetched all the records from ‘Employee’ table −

mysql> Select * from Employee;
+------+--------+
| Id   | Name   |
+------+--------+
| 100  | Ram    |
| 200  | Gaurav |
| 300  | Mohan  |
+------+--------+
3 rows in set (0.00 sec)
raja
Published on 19-Feb-2018 15:05:07
Advertisements