
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
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)
- Related Articles
- How can we fetch alternate even-numbered records from MySQL table?
- How can we fetch alternate odd numbered records from MySQL table?
- How can we fetch a particular row as output from a MySQL table?
- How can fetch records from specific month and year in a MySQL table?
- How we can find all the triggers associated with a particular MySQL table?
- How to fetch the newly added records from a MySQL table?
- How can we display all the records from MySQL table with the help of PHP script?
- How can we delete all rows from a MySQL table?
- How can I get the records from MySQL table in result set in a particular way?
- Delete all the records from a MySQL table?
- How can we fetch one or more columns as output from a MySQL table?
- How can we fetch a second highest salary of an employee from a MySQL table?
- Delete all records from a table in MySQL?
- How can we update MySQL table after removing a particular string from the values of column?
- MySQL query to fetch the latest date from a table with date records

Advertisements