What is SELECT All Data and How to Use It?
When you want to select all data from a table, use the SELECT * FROM table_name; query. It displays all the records in the table.
Note: If you want to fetch only specific columns, then mention column names instead of *.
Common Mistakes When Using SELECT *
- Do not use this statement for big data. It is better to use it on medium-level data in the table.
- When you use it with big data, you should select specific columns.
- You should use this query carefully. When you need to show data from some columns, you should select only those columns instead of showing all the data. For example:
SELECT name, age FROM students;
This makes the query easier to run and does not waste memory.












