94 lines
5.2 KiB
HTML
94 lines
5.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="Get started with SQL" />
|
|
<meta name="abstract" content="This topic describes how to create and work with schemas, tables, and views using SQL statements in interactive SQL." />
|
|
<meta name="description" content="This topic describes how to create and work with schemas, tables, and views using SQL statements in interactive SQL." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatckickoff.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcschema.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatccrttblsql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatclabelon.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcinsertsql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcgetinfosql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcmulttblsql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcchgtblsql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcdeletesql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatcviewsql.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafykickoff.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzatcgetstartsql" />
|
|
<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>Get started with SQL</title>
|
|
</head>
|
|
<body id="rzatcgetstartsql"><a name="rzatcgetstartsql"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Get started with SQL</h1>
|
|
<div><p>This topic describes how to create and work with schemas, tables,
|
|
and views using SQL statements in interactive SQL. </p>
|
|
<div class="section"><p>The syntax for each of the SQL statements used in this chapter
|
|
is described in detail and descriptions of how to use SQL statements and clauses
|
|
in more complex situations are provided in the <a href="../db2/rbafzmst02.htm">SQL
|
|
Reference</a> topic.</p>
|
|
<p>In this article, the examples use the interactive
|
|
SQL interface to show the use of SQL statements. Each SQL interface provides
|
|
methods for using SQL statements to define tables, views, and other objects,
|
|
methods for updating the objects, and methods for reading data from the objects.</p>
|
|
<p>First,
|
|
start interactive SQL:</p>
|
|
</div>
|
|
<ol><li><span>Type <kbd class="userinput">STRSQL NAMING(*SQL)</kbd>.</span></li>
|
|
<li><span>Press Enter.</span></li>
|
|
</ol>
|
|
<div class="section">When the Enter SQL Statements display appears, you are ready to start
|
|
typing SQL statements. <p>If you are reusing an existing interactive
|
|
SQL session, make sure that you set the naming mode to <span class="uicontrol">SQL naming</span>.
|
|
You can specify this on the F13 (Services) panel, option 1 (Change session
|
|
attributes).</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzatcschema.htm">Create a schema</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatccrttblsql.htm">Create and use a table</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatclabelon.htm">Use the LABEL ON statement</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcinsertsql.htm">Insert information into a table</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcgetinfosql.htm">Get information from a single table</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcmulttblsql.htm">Get information from multiple tables</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcchgtblsql.htm">Change information in a table</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcdeletesql.htm">Delete information from a table</a></strong><br />
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="rzatcviewsql.htm">Create and use a view</a></strong><br />
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzatckickoff.htm">Database overview</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../sqlp/rbafykickoff.htm">SQL Programming</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |