ex2_8c-example.html

来自「Linux下的操作oracle数据库的连接库」· HTML 代码 · 共 28 行

HTML
28
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>libsqlora8: Example Documentation</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <a class="qindex" href="examples.html">Examples</a></div><h1>ex2.c</h1>Example for using sqlo_count <div class="fragment"><pre><span class="comment">/* $Id: ex2.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */</span><span class="preprocessor">#include &lt;stdio.h&gt;</span><span class="preprocessor">#include &lt;stdlib.h&gt;</span><span class="preprocessor">#include "examples.h"</span><span class="keywordtype">int</span> col_count(<a class="code" href="group__typedefs.html#ga0">sqlo_db_handle_t</a> dbh, <span class="keywordtype">char</span> * table_name){  <span class="keywordtype">int</span> stat;  <span class="keywordflow">if</span> ( 0 &gt; (stat = <a name="a67"></a><a class="code" href="group__easy.html#ga161">sqlo_count</a>(dbh, <span class="stringliteral">"USER_TAB_COLUMNS"</span>, <span class="stringliteral">"TABLE_NAME"</span>, table_name, NULL))) {    error_exit(dbh, <span class="stringliteral">"sqlo_count"</span>);  }  <span class="keywordflow">return</span> stat;}<span class="comment">/* $Id: ex2.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */</span></pre></div> <hr size="1"><address style="align: right;"><small>Generated on Sun Jun 13 04:51:41 2004 for libsqlora8 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.6 </small></address></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?