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



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)
Updated on: 2020-01-29T06:37:09+05:30

290 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements