TUTORIAL INDEX

MySQL SELECT Specific Columns

|

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 *

  1. Do not use this statement for big data. It is better to use it on medium-level data in the table.
  2. When you use it with big data, you should select specific columns.
  3. 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.

ONLINE WEB TOOLS

WhatIsMyIpAddress
Shorterner