ibm-information-center/dist/eclipse/plugins/i5OS.ic.sqlp_5.4.0.1/rbafyuselistselect.htm

79 lines
4.9 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 lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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="DC.Type" content="reference" />
<meta name="DC.Title" content="Use the list selection function" />
<meta name="abstract" content="The list selection function is available by pressing F4 on certain prompt displays, or F16, F17, or F18 on the Enter SQL Statements display." />
<meta name="description" content="The list selection function is available by pressing F4 on certain prompt displays, or F16, F17, or F18 on the Enter SQL Statements display." />
<meta name="DC.subject" content="interactive SQL, list selection function" />
<meta name="keywords" content="interactive SQL, list selection function" />
<meta name="DC.Relation" scheme="URI" content="rbafyintract.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafylistselect1.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbafyuselistselect" />
<meta name="DC.Language" 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. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Use the list selection function</title>
</head>
<body id="rbafyuselistselect"><a name="rbafyuselistselect"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use the list selection function</h1>
<div><p>The list selection function is available by pressing F4 on certain
prompt displays, or F16, F17, or F18 on the Enter SQL Statements display.</p>
<div class="section"><p>After pressing the function key, you are given a list of authorized
relational databases, schemas, tables, views, aliases, columns, constraints,
procedures, parameters, or packages from which to choose. If you request a
list of tables, but you have not previously selected a schema, you are asked
to select a schema first.</p>
</div>
<div class="section"><p>On a list, you can select one or more items, numerically specifying
the order in which you want them to appear in the statement. When the list
function is exited, the selections you made are inserted at the position of
the cursor on the display you came from.</p>
</div>
<div class="section"><p>Always select the list you are primarily interested in. For example,
if you want a list of columns, but you believe that the columns you want are
in a table not currently selected, press F18=Select columns. Then, from the
column list, press F17 to change the table. If the table list were selected
first, the table name will be inserted into your statement. You do not have
a choice for selecting columns.</p>
</div>
<div class="section"><p>You can request a list at any time while typing an SQL statement
on the Enter SQL Statements display. The selections you make from the lists
are inserted on the Enter SQL Statements display. They are inserted where
the cursor is located in the numeric order that you specified on the list
display. Although the selected list information is added for you, you must
type the keywords for the statement.</p>
</div>
<div class="section"><p>The list function tries to provide qualifications that are necessary
for the selected columns, tables, and SQL packages. However, sometimes the
list function cannot determine the intent of the SQL statement. You need to
review the SQL statement and verify that the selected columns, tables, and
SQL packages are properly qualified.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafylistselect1.htm">Example: Use the list selection function</a></strong><br />
The following example shows you how to use the list function to build a SELECT statement.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafyintract.htm" title="Interactive SQL allows the programmer or database administrator to quickly and easily define, update, delete, or look at data for testing, problem analysis, and database maintenance.">Use interactive SQL</a></div>
</div>
</div>
</body>
</html>