113 lines
6.7 KiB
HTML
113 lines
6.7 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="Delete information from a table" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzatccrttable.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzatcdelinfo" />
|
|
<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>Delete information from a table</title>
|
|
</head>
|
|
<body id="rzatcdelinfo"><a name="rzatcdelinfo"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Delete information from a table</h1>
|
|
<div><div class="section">You can delete data from a table by using <span class="keyword">iSeries™ Navigator</span>.
|
|
You can delete information from a single column in a row or delete the row
|
|
entirely. Keep in mind that if a column requires a value, you will not be
|
|
able to delete it without deleting the entire row.</div>
|
|
<ol><li><span>Open table INVENTORY_LIST by double-clicking on it.</span></li>
|
|
<li><span>Delete the column value for ORDER_QUANTITY for the <span class="uicontrol">Envelopes,
|
|
standard</span> row. Because this is a column that allows Null values,
|
|
you can delete the value.</span></li>
|
|
<li><span>Delete the column value for UNIT_COST for the <span class="uicontrol">Lined
|
|
tablets</span> row. Because this column does not allow Null values, the
|
|
deletion is not allowed.</span></li>
|
|
</ol>
|
|
<div class="section">You can also delete an entire row without removing all of the column
|
|
values one at a time.<ol><li>Open table INVENTORY_LIST by double-clicking it.</li>
|
|
<li>Click the cell to the left of the UNKNOWN row. This highlights the entire
|
|
row.</li>
|
|
<li>Select <span class="uicontrol">Delete</span> from the <span class="uicontrol">Rows</span> menu
|
|
or press the Delete key on your keyboard. The UNKNOWN row is deleted.</li>
|
|
<li>Delete all of the rows from table INVENTORY_LIST that do not have a value
|
|
in the QUANTITY_ON_HAND column.</li>
|
|
<li>Save the changes and view the contents by using <span class="uicontrol">View Contents</span>.</li>
|
|
</ol>
|
|
You should have a table that contains the following data:
|
|
<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="17.17390568401097%" id="d0e63">ITEM_ NUMBER </th>
|
|
<th valign="top" width="16.579775889502013%" id="d0e65">ITEM_ NAME </th>
|
|
<th valign="top" width="13.886726023223536%" id="d0e67">UNIT_ COST </th>
|
|
<th valign="top" width="14.507938657368225%" id="d0e69">QUANTITY_ ON_ HAND </th>
|
|
<th valign="top" width="17.625850570432313%" id="d0e71">LAST_ ORDER_ DATE</th>
|
|
<th valign="top" width="20.225803175462946%" id="d0e73">ORDER_ QUANTITY </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr><td valign="top" width="17.17390568401097%" headers="d0e63 ">153047 </td>
|
|
<td valign="top" width="16.579775889502013%" headers="d0e65 ">Pencils, red </td>
|
|
<td valign="top" width="13.886726023223536%" headers="d0e67 ">10.00</td>
|
|
<td valign="top" width="14.507938657368225%" headers="d0e69 ">25</td>
|
|
<td valign="top" width="17.625850570432313%" headers="d0e71 "> </td>
|
|
<td valign="top" width="20.225803175462946%" headers="d0e73 ">20</td>
|
|
</tr>
|
|
<tr><td valign="top" width="17.17390568401097%" headers="d0e63 ">229740</td>
|
|
<td valign="top" width="16.579775889502013%" headers="d0e65 ">Lined tablets</td>
|
|
<td valign="top" width="13.886726023223536%" headers="d0e67 ">1.50</td>
|
|
<td valign="top" width="14.507938657368225%" headers="d0e69 ">120</td>
|
|
<td valign="top" width="17.625850570432313%" headers="d0e71 "> </td>
|
|
<td valign="top" width="20.225803175462946%" headers="d0e73 ">20</td>
|
|
</tr>
|
|
<tr><td valign="top" width="17.17390568401097%" headers="d0e63 ">303476</td>
|
|
<td valign="top" width="16.579775889502013%" headers="d0e65 ">Paper clips</td>
|
|
<td valign="top" width="13.886726023223536%" headers="d0e67 ">2.00</td>
|
|
<td valign="top" width="14.507938657368225%" headers="d0e69 ">100</td>
|
|
<td valign="top" width="17.625850570432313%" headers="d0e71 ">2003-09-22</td>
|
|
<td valign="top" width="20.225803175462946%" headers="d0e73 ">50</td>
|
|
</tr>
|
|
<tr><td valign="top" width="17.17390568401097%" headers="d0e63 ">559343 </td>
|
|
<td valign="top" width="16.579775889502013%" headers="d0e65 ">Envelopes, legal</td>
|
|
<td valign="top" width="13.886726023223536%" headers="d0e67 ">3.00</td>
|
|
<td valign="top" width="14.507938657368225%" headers="d0e69 ">500</td>
|
|
<td valign="top" width="17.625850570432313%" headers="d0e71 "> </td>
|
|
<td valign="top" width="20.225803175462946%" headers="d0e73 ">20</td>
|
|
</tr>
|
|
<tr><td valign="top" width="17.17390568401097%" headers="d0e63 ">775298</td>
|
|
<td valign="top" width="16.579775889502013%" headers="d0e65 ">Chairs, secretary </td>
|
|
<td valign="top" width="13.886726023223536%" headers="d0e67 ">225.00</td>
|
|
<td valign="top" width="14.507938657368225%" headers="d0e69 ">6</td>
|
|
<td valign="top" width="17.625850570432313%" headers="d0e71 "> </td>
|
|
<td valign="top" width="20.225803175462946%" headers="d0e73 ">20</td>
|
|
</tr>
|
|
<tr><td valign="top" width="17.17390568401097%" headers="d0e63 ">073956</td>
|
|
<td valign="top" width="16.579775889502013%" headers="d0e65 ">Pens, black</td>
|
|
<td valign="top" width="13.886726023223536%" headers="d0e67 ">20.00</td>
|
|
<td valign="top" width="14.507938657368225%" headers="d0e69 ">25</td>
|
|
<td valign="top" width="17.625850570432313%" headers="d0e71 "> </td>
|
|
<td valign="top" width="20.225803175462946%" headers="d0e73 ">20</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</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> |