62 lines
4.8 KiB
HTML
62 lines
4.8 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="concept" />
|
|
<meta name="DC.Title" content="Common concepts and rules for using embedded SQL" />
|
|
<meta name="abstract" content="This topic describes some concepts and rules that are common to using SQL statements in a host language." />
|
|
<meta name="description" content="This topic describes some concepts and rules that are common to using SQL statements in a host language." />
|
|
<meta name="DC.subject" content="rule, SQL with host language, using, SQL, using with host language, concepts and rules, host language, concepts and rules, language, host" />
|
|
<meta name="keywords" content="rule, SQL with host language, using, SQL, using with host language, concepts and rules, host language, concepts and rules, language, host" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajpkickoff.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajpwritesqlapp.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajphostvar.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajperrtncd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajpdiagnostics.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajpwhen.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="rzajpsqlcom" />
|
|
<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>Common concepts and rules for using embedded SQL</title>
|
|
</head>
|
|
<body id="rzajpsqlcom"><a name="rzajpsqlcom"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Common concepts and rules for using embedded SQL</h1>
|
|
<div><p>This topic describes some concepts and rules that are common to
|
|
using SQL statements in a host language.</p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzajpwritesqlapp.htm">Write applications that use SQL</a></strong><br />
|
|
You can create database applications in host languages that use <span class="keyword">DB2<sup>®</sup> UDB for iSeries™</span> SQL statements and functions.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajphostvar.htm">Use host variables in SQL statements</a></strong><br />
|
|
When your program retrieves data, the values are put into data
|
|
items defined by your program and specified with the INTO clause of a SELECT
|
|
INTO or FETCH statement. The data items are called <em>host variables</em>.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajperrtncd.htm">Handle SQL error return codes using the SQLCA</a></strong><br />
|
|
When an SQL statement is processed in your program, SQL places a return code in the SQLCODE and SQLSTATE fields. The return codes indicate the success or failure of the running of your statement.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajpdiagnostics.htm">Use the SQL diagnostics area</a></strong><br />
|
|
The SQL diagnostics area is used to keep the returned information for an SQL statement that has been run in a program. It contains all the information that is available to you as an application programmer through the SQLCA.</li>
|
|
<li class="ulchildlink"><strong><a href="rzajpwhen.htm">Handle exception conditions with the WHENEVER Statement</a></strong><br />
|
|
The WHENEVER statement causes SQL to check the SQLSTATE and SQLCODE and continue processing your program, or branch to another area in your program if an error, exception, or warning exists as a result of running an SQL statement.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzajpkickoff.htm" title="This topic collection explains how to create database applications in host languages that use DB2 Universal Database for iSeries SQL statements and functions.">Embedded SQL programming</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |