54 lines
3.3 KiB
HTML
54 lines
3.3 KiB
HTML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow"/>
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="keywords" content="CREATE ALIAS statement" />
|
||
|
<title>Aliases</title>
|
||
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
||
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
||
|
|
||
|
|
||
|
<a name="ali"></a>
|
||
|
<h2 id="ali"><a href="rbafzmst02.htm#ToC_37">Aliases</a></h2><a id="idx105" name="idx105"></a>
|
||
|
<p>An <span class="italic">alias</span> is an alternate name for a table or view.
|
||
|
You can use an alias to reference a table or view in those cases where an
|
||
|
existing table or view can be referenced.<sup class="fn"><a id="wq11" name="wq11" href="rbafzmstali.htm#wq12">3</a></sup> However,
|
||
|
the option of referencing a table or view by an alias is not explicitly shown
|
||
|
in the syntax diagrams or mentioned in the description of SQL statements.
|
||
|
Like tables and views, an alias may be created, dropped, and have a comment
|
||
|
or label associated with it. No authority is necessary to use an alias. Access
|
||
|
to the tables and views that are referred to by the alias, however, still
|
||
|
require the appropriate authorization for the current statement.</p>
|
||
|
<p>An alias has a name and may have a different system name. The system name
|
||
|
is the name used by i5/OS. Either name is acceptable wherever an <span class="italic">alias-name</span> is specified in SQL statements.</p>
|
||
|
<p>An <span class="italic">alias</span> is created with the CREATE ALIAS statement.
|
||
|
For more information about creating aliases, see <a href="rbafzmsthcalias.htm#hcalias">CREATE ALIAS</a>.</p>
|
||
|
<hr /><div class="fnnum"><a id="wq12" name="wq12" href="rbafzmstali.htm#wq11">3</a>.</div>
|
||
|
<div class="fntext">You cannot use an alias in all
|
||
|
contexts. For example, an alias that refers to an individual member of a database
|
||
|
file cannot be used in data definition language (DDL) statements.</div>
|
||
|
<br />
|
||
|
<hr /><br />
|
||
|
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstudtdef.htm">Previous Page</a> | <a href="rbafzmstpackageap.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
|
||
|
<a href="rbafzmstindex.htm#index">Index</a> ]
|
||
|
|
||
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
||
|
</body>
|
||
|
</html>
|