📄 group__g__collection.html
字号:
<p>References <a class="el" href="ocilib__types_8h-source.html#l00584">OCI_Coll::typinf</a>.</p></div></div><p><a class="anchor" name="g5fa6e43afbe0dc39b56b52f8e09dc29a"></a><!-- doxytag: member="ocilib.h::OCI_CollSetAt" ref="g5fa6e43afbe0dc39b56b52f8e09dc29a" args="(OCI_Coll *coll, unsigned int index, OCI_Elem *elem)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_CollSetAt </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___coll.html">OCI_Coll</a> * </td> <td class="paramname"> <em>coll</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_o_c_i___elem.html">OCI_Elem</a> * </td> <td class="paramname"> <em>elem</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Assign the given element value to the element at the given position in the collection. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>coll</em> </td><td>- Collection handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>- Index of the destination element </td></tr> <tr><td valign="top"></td><td valign="top"><em>elem</em> </td><td>- Source element handle to assign</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>Collection indexes start at position 1.</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="collection_8c-source.html#l00326">326</a> of file <a class="el" href="collection_8c-source.html">collection.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00632">OCI_TypeInfo::cols</a>, <a class="el" href="ocilib__types_8h-source.html#l00583">OCI_Coll::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00267">OCI_Connection::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00581">OCI_Coll::handle</a>, <a class="el" href="ocilib__types_8h-source.html#l00563">OCI_Elem::handle</a>, <a class="el" href="ocilib__types_8h-source.html#l00571">OCI_Elem::ind</a>, <a class="el" href="ocilib__types_8h-source.html#l00313">OCI_Column::type</a>, <a class="el" href="ocilib__types_8h-source.html#l00584">OCI_Coll::typinf</a>, and <a class="el" href="ocilib__types_8h-source.html#l00570">OCI_Elem::typinf</a>.</p></div></div><p><a class="anchor" name="gc5e37e3a0fd362c8c3aa150d5cb66c51"></a><!-- doxytag: member="ocilib.h::OCI_CollTrim" ref="gc5e37e3a0fd362c8c3aa150d5cb66c51" args="(OCI_Coll *coll, int nb_elem)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_CollTrim </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___coll.html">OCI_Coll</a> * </td> <td class="paramname"> <em>coll</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nb_elem</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Trims the given number of elements from the end of the collection. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>coll</em> </td><td>- Collection handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>nb_elem</em> </td><td>- Number of elements to trim</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd></dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="collection_8c-source.html#l00266">266</a> of file <a class="el" href="collection_8c-source.html">collection.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00583">OCI_Coll::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00267">OCI_Connection::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00581">OCI_Coll::handle</a>, and <a class="el" href="ocilib__types_8h-source.html#l00586">OCI_Coll::size</a>.</p></div></div><p><a class="anchor" name="g2103a0d8230001c7fc217189688244cb"></a><!-- doxytag: member="ocilib.h::OCI_ElemCreate" ref="g2103a0d8230001c7fc217189688244cb" args="(OCI_TypeInfo *typinf)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT <a class="el" href="struct_o_c_i___elem.html">OCI_Elem</a>* OCI_API OCI_ElemCreate </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___type_info.html">OCI_TypeInfo</a> * </td> <td class="paramname"> <em>typinf</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Create a local collection element instance based on a collection type descriptor. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>typinf</em> </td><td>- Type info handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Return the collection element handle on success otherwise NULL on failure </dd></dl><p>Definition at line <a class="el" href="element_8c-source.html#l00146">146</a> of file <a class="el" href="element_8c-source.html">element.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00625">OCI_TypeInfo::con</a>.</p></div></div><p><a class="anchor" name="gdf1010d812aa53c3b27d991fa47b4f98"></a><!-- doxytag: member="ocilib.h::OCI_ElemFree" ref="gdf1010d812aa53c3b27d991fa47b4f98" args="(OCI_Elem *elem)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ElemFree </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___elem.html">OCI_Elem</a> * </td> <td class="paramname"> <em>elem</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Free a local collection element. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>elem</em> </td><td>- Element handle</td></tr> </table></dl><dl class="warning" compact><dt><b>Warning:</b></dt><dd>Only element created with <a class="el" href="group__g__collection.html#g2103a0d8230001c7fc217189688244cb" title="Create a local collection element instance based on a collection type descriptor...">OCI_ElemCreate()</a> should be freed by <a class="el" href="group__g__collection.html#gdf1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -