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

159 lines
9.3 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="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="Insert information into a table" />
<meta name="DC.Relation" scheme="URI" content="rzatccrttable.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzatcinsertinfo" />
<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>Insert information into a table</title>
</head>
<body id="rzatcinsertinfo"><a name="rzatcinsertinfo"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Insert information into a table</h1>
<div><div class="section">To insert, edit, or delete data in a table, you must have authority
to that table. To add data to the table INVENTORY_LIST:</div>
<ol><li class="stepexpand"><span>In the <span class="keyword">iSeries™ Navigator</span> window,
expand the system that you want to use. </span></li>
<li class="stepexpand"><span>Expand <span class="uicontrol">Databases</span> and the database that you
want to work with.</span></li>
<li class="stepexpand"><span>Expand <span class="uicontrol">Schemas</span>.</span></li>
<li class="stepexpand"><span>Select <span class="uicontrol">SAMPLELIB</span>.</span></li>
<li class="stepexpand"><span>Double-click <span class="uicontrol">Tables</span>.</span></li>
<li class="stepexpand"><span>Right-click INVENTORY_LIST and select <span class="uicontrol">Edit Contents</span>.</span></li>
<li class="stepexpand"><span>From the Rows menu, select <span class="uicontrol">Insert</span>. </span> A new row appears.</li>
<li class="stepexpand"><span>Enter the information from the table below under the appropriate
headings.</span> <div class="note"><span class="notetitle">Note:</span> The values you enter must satisfy all constraints
and satisfy the type of each column. If there is a unique constraint or index
over the table, the values you enter must define a unique key value. If you
do not enter a value in a column, the default value will be entered, if allowed.
For this exercise, insert only those values shown in the table below so that
the default values are used.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="90%" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="22.10796915167095%" id="d0e70">ITEM_NUMBER </th>
<th valign="top" width="24.164524421593832%" id="d0e72">ITEM_NAME </th>
<th valign="top" width="24.164524421593832%" id="d0e74">UNIT_COST </th>
<th valign="top" width="29.562982005141386%" id="d0e76">QUANTITY_ON_HAND</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">153047 </td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Pencils, red </td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">10.00</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">25</td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">229740</td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Lined tablets </td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">1.50</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">120 </td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">544931 </td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">&nbsp;</td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">5.00</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">&nbsp;</td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">303476</td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Paper clips </td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">2.00</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">100</td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">559343 </td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Envelopes, legal</td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">3.00 </td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">500</td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">291124 </td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Envelopes, standard</td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">&nbsp;</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">&nbsp;</td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">775298 </td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Chairs, secretary</td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">225.00</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">6 </td>
</tr>
<tr><td valign="top" width="22.10796915167095%" headers="d0e70 ">073956</td>
<td valign="top" width="24.164524421593832%" headers="d0e72 ">Pens, black </td>
<td valign="top" width="24.164524421593832%" headers="d0e74 ">20.00</td>
<td valign="top" width="29.562982005141386%" headers="d0e76 ">25</td>
</tr>
</tbody>
</table>
</div>
<p>From the <span class="uicontrol">File</span> menu, select <span class="uicontrol">Save</span>.</p>
</div>
</li>
<li class="stepexpand"><span>Add the following rows to the SAMPLELIB.SUPPLIERS table.</span>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="90%" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="33.11036789297659%" id="d0e166">ITEM_NUMBER </th>
<th valign="top" width="38.46153846153847%" id="d0e168">SUPPLIER_NUMBER </th>
<th valign="top" width="28.428093645484946%" id="d0e170">SUPPLIER_COST</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">153047 </td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">1234 </td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">10.00</td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">229740</td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">1234 </td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">1.00 </td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">303476 </td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">1234</td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">3.00</td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">153047</td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">9988</td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">8.00</td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">559343</td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">9988 </td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">3.00</td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">153047</td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">2424 </td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">9.00 </td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">303476 </td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">2424</td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">2.50 </td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">775298</td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">5546</td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">225.00</td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">303476</td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">3366 </td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">1.50</td>
</tr>
<tr><td valign="top" width="33.11036789297659%" headers="d0e166 ">073956 </td>
<td valign="top" width="38.46153846153847%" headers="d0e168 ">3366</td>
<td valign="top" width="28.428093645484946%" headers="d0e170 ">17.00</td>
</tr>
</tbody>
</table>
</div>
</li>
<li class="stepexpand"><span>From the <span class="uicontrol">File</span> menu, select <span class="uicontrol">Save</span>.
The sample schema now contains two tables with several rows of data in each.</span></li>
</ol>
</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>