ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatc_5.4.0.1/rzatcgensql.htm

50 lines
3.2 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="copyright" content="(C) Copyright IBM Corporation 2005" />
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
<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="task" />
<meta name="DC.Title" content="Generate SQL for objects" />
<meta name="DC.Relation" scheme="URI" content="rzatcrunscript.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzatcgensql" />
<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>Generate SQL for objects</title>
</head>
<body id="rzatcgensql"><a name="rzatcgensql"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Generate SQL for objects</h1>
<div><div class="section"><img src="./delta.gif" alt="Start of change" />The Generate SQL function allows you to reconstruct
the SQL used to create existing database objects. This process is often referred
to as <em>reverse engineering</em>. You can generate SQL for most database objects.
Additionally, if you generate SQL for a table that has constraints or triggers
associated with it, the SQL will be generated for those as well. You can generate
the SQL for one object or many at a time. You also have the option of sending
the generated SQL to the Run SQL Scripts window for running or editing, or
you can write the generated SQL directly to a database or PC file.<p>To
generate SQL for an object, right-click the object and select <span class="uicontrol">Generate
SQL</span>.</p>
<p><img src="./delta.gif" alt="Start of change" />You can also start the Generate SQL
interface from Run SQL Scripts by selecting <span class="uicontrol">Insert
Generated SQL</span> from the <span class="uicontrol">Edit</span> menu.<img src="./deltaend.gif" alt="End of change" /></p>
<img src="./deltaend.gif" alt="End of change" /></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzatcrunscript.htm" title="The Run SQL Scripts window in iSeries Navigator allows you to create, edit, run, and troubleshoot scripts of SQL statements. When you have finished working with the scripts, you can save them to your PC.">Query your database using the Run SQL Scripts interface</a></div>
</div>
</div>
</body>
</html>