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, 3098🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions in general areas of Microsoft SQL Server Transac...
How To Create a Stored Program Unit in Oracle? If you want to create a stored program unit, you can ...
How to convert a JSON (JavaScript Object Notation) quoted string into a regular character string usi...
How To Generate CREATE VIEW Script on an Existing View in SQL Server? If you want to know how an exi...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...