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

68 lines
4.4 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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 statement entry function" />
<meta name="abstract" content="The statement entry function is the function you first enter when selecting interactive SQL. You return to the statement entry function after processing each interactive SQL statement." />
<meta name="description" content="The statement entry function is the function you first enter when selecting interactive SQL. You return to the statement entry function after processing each interactive SQL statement." />
<meta name="DC.subject" content="interactive SQL, statement entry" />
<meta name="keywords" content="interactive SQL, statement entry" />
<meta name="DC.Relation" scheme="URI" content="rbafyintract.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="rbafystmtentry" />
<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 statement entry function</title>
</head>
<body id="rbafystmtentry"><a name="rbafystmtentry"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use statement entry function</h1>
<div><p>The statement entry function is the function you first enter when
selecting interactive SQL. You return to the statement entry function after
processing each interactive SQL statement.</p>
<div class="section"><p>In the statement entry function, you type or prompt for the entire
SQL statement and then submit it for processing by pressing the Enter key.</p>
</div>
<div class="section"><p>The statement you type on the command line can
be one or more lines long. You can type bracketed comments (/* */) in interactive
SQL. However, you should not use simple comments (that is, comments
starting with --) in interactive SQL because these comments then include the
remainder of the SQL statement within the comment. When the statement has
been processed, the statement and the resulting message are moved upward on
the display. You can then enter another statement.</p>
</div>
<div class="section"><p>If a statement is recognized by SQL but contains a syntax error,
the statement and the resulting text message (syntax error) are moved upward
on the display. In the input area, a copy of the statement is shown with the
cursor positioned at the syntax error. You can place the cursor on the message
and press F1=Help for more information about the error.</p>
</div>
<div class="section"><p>You can page through previous statements, commands, and messages.
If you press F9=Retrieve with your cursor on the statement entry line, your
previous statement is copied to the input area. Pressing F9 again causes it
to scroll back one more statement and copy that to the input area. Continuing
to press F9 allows you to scroll back through your previous statements until
you find the one that you want. If you need more room to type an SQL statement,
page down on the display.</p>
</div>
</div>
<div>
<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>