98 lines
6.0 KiB
HTML
98 lines
6.0 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="Define additional columns on a table" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzatccrttable.htm" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rzatcdefinecol" />
|
||
|
<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>Define additional columns on a table</title>
|
||
|
</head>
|
||
|
<body id="rzatcdefinecol"><a name="rzatcdefinecol"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Define additional columns on a table</h1>
|
||
|
<div><div class="p">You can define columns on a new or existing table. To add columns
|
||
|
to the table you just created, navigate to the table INVENTORY_LIST by expanding <span class="menucascade"><span class="uicontrol">Database</span> > <span class="uicontrol">Schemas</span> > <span class="uicontrol">SAMPLELIB</span> > <span class="uicontrol">Tables</span></span>. In the detail pane, right-click
|
||
|
the table INVENTORY_LIST and select <strong>Definition</strong>.</div>
|
||
|
<ol><li><span>To define a column on the Table Definition window, select the <span class="uicontrol">Columns</span> tab.</span></li>
|
||
|
<li><span>Click <span class="uicontrol">Add</span>.</span></li>
|
||
|
<li><span>Add the following columns to Table INVENTORY_LIST:</span></li>
|
||
|
</ol>
|
||
|
<div class="section">
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="24.067164179104477%" id="d0e50">Column name </th>
|
||
|
<th valign="top" width="16.417910447761194%" id="d0e52">Type</th>
|
||
|
<th valign="top" width="9.701492537313433%" id="d0e54">Length </th>
|
||
|
<th valign="top" width="13.432835820895523%" id="d0e56">Precision</th>
|
||
|
<th valign="top" width="8.768656716417912%" id="d0e58">Scale </th>
|
||
|
<th valign="top" width="11.753731343283583%" id="d0e60">Nullable </th>
|
||
|
<th valign="top" width="15.858208955223882%" id="d0e62">Default value</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody><tr><td valign="top" width="24.067164179104477%" headers="d0e50 ">ITEM_NAME </td>
|
||
|
<td valign="top" width="16.417910447761194%" headers="d0e52 ">VARCHAR</td>
|
||
|
<td valign="top" width="9.701492537313433%" headers="d0e54 ">20</td>
|
||
|
<td valign="top" width="13.432835820895523%" headers="d0e56 "> </td>
|
||
|
<td valign="top" width="8.768656716417912%" headers="d0e58 "> </td>
|
||
|
<td valign="top" width="11.753731343283583%" headers="d0e60 ">No</td>
|
||
|
<td valign="top" width="15.858208955223882%" headers="d0e62 ">UNKNOWN</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="24.067164179104477%" headers="d0e50 ">UNIT_COST </td>
|
||
|
<td valign="top" width="16.417910447761194%" headers="d0e52 ">DECIMAL</td>
|
||
|
<td valign="top" width="9.701492537313433%" headers="d0e54 "> </td>
|
||
|
<td valign="top" width="13.432835820895523%" headers="d0e56 ">8</td>
|
||
|
<td valign="top" width="8.768656716417912%" headers="d0e58 "> 2 </td>
|
||
|
<td valign="top" width="11.753731343283583%" headers="d0e60 ">No</td>
|
||
|
<td valign="top" width="15.858208955223882%" headers="d0e62 ">0</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="24.067164179104477%" headers="d0e50 ">QUANTITY_ON_HAND </td>
|
||
|
<td valign="top" width="16.417910447761194%" headers="d0e52 ">SMALLINT </td>
|
||
|
<td valign="top" width="9.701492537313433%" headers="d0e54 "> </td>
|
||
|
<td valign="top" width="13.432835820895523%" headers="d0e56 "> </td>
|
||
|
<td valign="top" width="8.768656716417912%" headers="d0e58 "> </td>
|
||
|
<td valign="top" width="11.753731343283583%" headers="d0e60 ">Yes</td>
|
||
|
<td valign="top" width="15.858208955223882%" headers="d0e62 ">NULL</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="24.067164179104477%" headers="d0e50 ">LAST_ORDER_DATE </td>
|
||
|
<td valign="top" width="16.417910447761194%" headers="d0e52 ">DATE </td>
|
||
|
<td valign="top" width="9.701492537313433%" headers="d0e54 "> </td>
|
||
|
<td valign="top" width="13.432835820895523%" headers="d0e56 "> </td>
|
||
|
<td valign="top" width="8.768656716417912%" headers="d0e58 "> </td>
|
||
|
<td valign="top" width="11.753731343283583%" headers="d0e60 ">Yes </td>
|
||
|
<td valign="top" width="15.858208955223882%" headers="d0e62 ">NULL</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="24.067164179104477%" headers="d0e50 ">ORDER_QUANTITY </td>
|
||
|
<td valign="top" width="16.417910447761194%" headers="d0e52 ">SMALLINT</td>
|
||
|
<td valign="top" width="9.701492537313433%" headers="d0e54 "> </td>
|
||
|
<td valign="top" width="13.432835820895523%" headers="d0e56 "> </td>
|
||
|
<td valign="top" width="8.768656716417912%" headers="d0e58 "> </td>
|
||
|
<td valign="top" width="11.753731343283583%" headers="d0e60 ">Yes</td>
|
||
|
<td valign="top" width="15.858208955223882%" headers="d0e62 ">20</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
When you finish defining these columns, click <span class="uicontrol">OK</span> to
|
||
|
create the table.</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzatccrttable.htm">Create a table and define a column</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|