Collections:
Selecting Columns in a Query in MySQL
How To Select Some Columns from a Table in MySQL?
✍: FYIcenter.com
If you want explicitly tell the query to return some columns, you can specify the column names in the SELECT clause. The following select statement returns only two columns, "id" and "url" from the table "fyi_links":
mysql> SELECT id, url FROM fyi_links; +-----+-------------------+ | id | url | +-----+-------------------+ | 101 | dev.fyicenter.com | | 102 | dba.fyicenter.com | | 103 | sqa.fyicenter.com | +-----+-------------------+ 3 rows in set (0.00 sec)
⇒ Select Rows with WHERE Clause in MySQL
⇐ Selecting All Columns of All Rows in MySQL
2017-11-05, 3015🔥, 0💬
Popular Posts:
How to download and install Microsoft .NET Framework Version 2.0 in SQL Server? .NET Framework Versi...
How To Get the Definition of a View Out of the SQL Server in SQL Server? If you want get the definit...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To Revise and Re-Run the Last SQL Command in Oracle? If executed a long SQL statement, found a m...