📄 group__g__collection.html
字号:
<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"><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>Append the given element at 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>elem</em> </td><td>- Element handle to add</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#l00352">352</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="g5121ce70006885b5f45df2c764ec8d8e"></a><!-- doxytag: member="ocilib.h::OCI_CollAssign" ref="g5121ce70006885b5f45df2c764ec8d8e" args="(OCI_Coll *coll, OCI_Coll *coll_src)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_CollAssign </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"><a class="el" href="struct_o_c_i___coll.html">OCI_Coll</a> * </td> <td class="paramname"> <em>coll_src</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 a collection to another one. <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>- Destination Collection handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>coll_src</em> </td><td>- Source Collection handle</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>Oracle proceeds to a deep copy of the collection content</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#l00183">183</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#l00308">OCI_Column::icode</a>, and <a class="el" href="ocilib__types_8h-source.html#l00584">OCI_Coll::typinf</a>.</p><p>Referenced by <a class="el" href="group__g__collection.html#g0178f95ac41f36d39386e2e6de199540">OCI_ElemSetColl()</a>, and <a class="el" href="group__g__usertypes.html#g73b1319ea170d1cc17ccd0aa1041cb61">OCI_ObjectSetColl()</a>.</p></div></div><p><a class="anchor" name="ga2c5c18fa416fe1f955ccb5dbff43046"></a><!-- doxytag: member="ocilib.h::OCI_CollCreate" ref="ga2c5c18fa416fe1f955ccb5dbff43046" 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___coll.html">OCI_Coll</a>* OCI_API OCI_CollCreate </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 instance. <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 of the collection type descriptor</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Return the collection object handle on success otherwise NULL on failure </dd></dl><p>Definition at line <a class="el" href="collection_8c-source.html#l00130">130</a> of file <a class="el" href="collection_8c-source.html">collection.c</a>.</p></div></div><p><a class="anchor" name="g8663babe980c99ff0441feedff973912"></a><!-- doxytag: member="ocilib.h::OCI_CollFree" ref="g8663babe980c99ff0441feedff973912" args="(OCI_Coll *coll)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_CollFree </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> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Free a local 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> </table></dl><dl class="warning" compact><dt><b>Warning:</b></dt><dd>Only collection created with <a class="el" href="group__g__collection.html#ga2c5c18fa416fe1f955ccb5dbff43046" title="Create a local collection instance.">OCI_CollCreate()</a> should be freed by <a class="el" href="group__g__collection.html#g8663babe980c99ff0441feedff973912" title="Free a local collection.">OCI_CollFree()</a></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#l00150">150</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#l00625">OCI_TypeInfo::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00585">OCI_Coll::elem</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#l00582">OCI_Coll::hstate</a>, <a class="el" href="ocilib__types_8h-source.html#l00564">OCI_Elem::hstate</a>, <a class="el" href="group__g__collection.html#gdf1010d812aa53c3b27d991fa47b4f98">OCI_ElemFree()</a>, and <a class="el" href="ocilib__types_8h-source.html#l00584">OCI_Coll::typinf</a>.</p><p>Referenced by <a class="el" href="group__g__collection.html#gdf1010d812aa53c3b27d991fa47b4f98">OCI_ElemFree()</a>.</p></div></div><p><a class="anchor" name="g65523dc5e889b8d1e956674dd05e9b8b"></a><!-- doxytag: member="ocilib.h::OCI_CollGetAt" ref="g65523dc5e889b8d1e956674dd05e9b8b" args="(OCI_Coll *coll, unsigned int index)" --><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_CollGetAt </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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -