Content deleted Content added
m v2.04b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation) |
hyperlink |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{Short description|Feature of SQL}}
{{refimprove|date=October 2013}}
An '''alias''' is a feature of [[SQL]] that is supported by most, if not all, [[RDBMS|relational database management systems (RDBMSs)]]. Aliases provide
In SQL, you can alias tables and [[Column (database)|columns]]. A table alias is
The general syntax of an alias is <syntaxhighlight lang="sql" inline>SELECT * FROM table_name [AS] alias_name</syntaxhighlight>. Note that the AS keyword is completely optional and is usually kept for readability purposes. Here is some sample data that the queries below will be referencing:
Line 65 ⟶ 66:
[[Category:SQL]]
[[Category:Articles with example SQL code]]
|