Collections:
Using Table Alias Names in MySQL
How To Define and Use Table Alias Names in MySQL?
✍: FYIcenter.com
When column names need to be prefixed with table names, you can define table alias name and use them to prefix column names as shown in the following select statement:
mysql> SELECT l.id, l.url, r.comment FROM fyi_links l INNER JOIN fyi_rates r ON l.id = r.id; +-----+-------------------+-----------+ | id | url | comment | +-----+-------------------+-----------+ | 101 | dev.fyicenter.com | The best | | 102 | dba.fyicenter.com | Well done | | 103 | sqa.fyicenter.com | Thumbs up | +-----+-------------------+-----------+ 3 rows in set (0.00 sec)
⇒ Query with a Left Outer Join in MySQL
⇐ Query with an Inner Join in MySQL
2017-12-31, 2255🔥, 0💬
Popular Posts:
Where to find reference information and tutorials on MySQL database functions? I want to know how to...
How To View Data Files in the Current Database in Oracle? If you want to get a list of all tablespac...
What Is "mysqld" in MySQL? "mysqld" is MySQL server daemon program which runs quietly in background ...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
What Happens to Your Transactions When ERROR 1205 Occurred in MySQL? If your transaction receives th...