Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\advnc_coll_merge.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Merging Collections</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T16:11:32Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Merging Collections" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E11947-01" /> <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface.htm" title="Home" type="text/html" /> <link rel="up" href="advnc.htm" title="Advanced Programming Techni..." type="text/html" /> <link rel="up" href="advnc_collections.htm" title="Using Collections" type="text/html" /> <link rel="up" href="advnc_coll_merge.htm" title="Merging Collections" type="text/html" /> <link rel="prev" href="advnc_coll_status.htm" title="Previous" type="text/html" /> <link rel="next" href="advnc_coll_mg.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface.htm" title="Home">Home</a> > <a href="advnc.htm" title="Advanced Programming Techni...">Advanced Programming Techni...</a> > <a href="advnc_collections.htm" title="Using Collections">Using Collections</a> > Merging Collections</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="advnc_coll_status.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="advnc_coll_mg.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="BABICJHH" name="BABICJHH"></a></p> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h1><a name="HTMDB25871" id="HTMDB25871"></a>Merging <a id="sthref2220" name="sthref2220"></a>Collections</h1> <p>You can merge members of a collection with values passed in a set of arrays. By using the <code>p_init_query</code> argument, you can create a collection from the supplied query.</p> <p>Note that if the collection exists, the following occurs:</p> <ul> <li> <p>Rows in the collection not in the arrays will be deleted.</p> </li> <li> <p>Rows in the collection and in the arrays will be updated.</p> </li> <li> <p>Rows in the array and not in the collection will be inserted.</p> </li> </ul> <p>Any attribute value exceeding 4,000 characters will be truncated to 4,000 characters. <a href="#BABDFCEE">Table: Available Arguments for Merging Collections</a> describes the available arguments you can use when merging collections.</p> <div class="tblformal"><a id="sthref2221" name="sthref2221"></a><a id="BABDFCEE" name="BABDFCEE"></a> <p class="titleintable">Available Arguments for Merging Collections</p> <table class="Formal" title="Available Arguments for Merging Collections" summary="The table describes the available arguments you can use when merging collections." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> <col width="31%" /> <col width="*" /> <thead> <tr align="left" valign="top"> <th align="left" valign="bottom" id="r1c1-t13">Argument</th> <th align="left" valign="bottom" id="r1c2-t13">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t13" headers="r1c1-t13"> <p><code>p_collection_name</code></p> </td> <td align="left" headers="r2c1-t13 r1c2-t13"> <p>Name of the collection.</p> <p><span class="bold">See Also:</span> <a href="advnc_coll_api.htm#BABBCHID">"About Collection Naming"</a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t13" headers="r1c1-t13"> <p><code>p_seq</code></p> </td> <td align="left" headers="r3c1-t13 r1c2-t13"> <p>Identifies the sequence number of the member to be merged.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r4c1-t13" headers="r1c1-t13"> <p><code>p_c001</code></p> </td> <td align="left" headers="r4c1-t13 r1c2-t13"> <p>Array of first attribute values to be merged. Maximum length is 4,000 characters. If the maximum length is greater, it will be truncated to 4,000 characters.</p> <p>The count of elements in the P_C001 PL/SQL table is used as the total number of items across all PL/SQL tables. For example, if P_C001.count = 2 and P_C002.count = 10, only 2 members will be merged. Note that if P_C001 is null, an application error will be raised.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r5c1-t13" headers="r1c1-t13"> <p><code>p_c0xx</code></p> </td> <td align="left" headers="r5c1-t13 r1c2-t13"> <p>Attribute of <code>XX</code> attributes values to be merged. Maximum length is 4,000 characters. If the maximum length is greater, it will be truncated to 4,000 characters.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r6c1-t13" headers="r1c1-t13"> <p><code>p_null_index</code></p> </td> <td align="left" headers="r6c1-t13 r1c2-t13"> <p>Use this argument to identify rows the merge function should ignore. This argument identifies an row as null. Null rows are automatically removed from the collection.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r7c1-t13" headers="r1c1-t13"> <p><code>p_null_value</code></p> </td> <td align="left" headers="r7c1-t13 r1c2-t13"> <p>Use this argument with the <code>p_null_index</code>. Identifies the null value. If used this value cannot be null. A typical value for this argument is 0.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r8c1-t13" headers="r1c1-t13"> <p><code>p_init_query</code></p> </td> <td align="left" headers="r8c1-t13 r1c2-t13"> <p>Use the query defined by this argument to create a collection if the collection does not exist.</p> </td> </tr> </tbody> </table> <br /></div> <!-- class="tblformal" --></div> <!-- class="sect2" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="advnc_coll_status.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="advnc_coll_mg.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de