📄 classodbc_1_1_statement.html.svn-base
字号:
</td> <td><p>Execute an SQL statement, expected to return a resultset.<p><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>sql</em> </td><td>The string to execute </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>A <a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> object. </dl> </td> </tr></table><a name="a5" doxytag="odbc::Statement::executeUpdate"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual int odbc::Statement::executeUpdate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>sql</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Execute an SQL statement, expected to return an update count.<p><dl compact><dt><b>Returns: </b><dd>The number of affected rows </dl> </td> </tr></table><a name="a21" doxytag="odbc::Statement::getEscapeProcessing"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool odbc::Statement::getEscapeProcessing </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Gets the current escape processing setting.<p><dl compact><dt><b>Returns: </b><dd><code>true</code> if escape processing is on, <code>false</code> otherwise </dl> </td> </tr></table><a name="a8" doxytag="odbc::Statement::getMoreResults"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool odbc::Statement::getMoreResults </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Check if there are more results available on this statment.<p><dl compact><dt><b>Returns: </b><dd>True if this statement has more results to offer. </dl> </td> </tr></table><a name="a6" doxytag="odbc::Statement::getUpdateCount"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int odbc::Statement::getUpdateCount </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Fetch the current result as an update count.<p><dl compact><dt><b>Returns: </b><dd>the current result's update count (affected rows), or <code>-1</code> if the result is a <a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> or if there are no more results. </dl> </td> </tr></table><a name="a20" doxytag="odbc::Statement::setEscapeProcessing"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void odbc::Statement::setEscapeProcessing </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>on</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets escape processing on or off.<p>For <code><a class="el" href="classodbc_1_1_prepared_statement.html">PreparedStatement</a></code>s, the command has been parsed on creation, so this setting won't really have any effect. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li>odbc++/<a class="el" href="statement_8h-source.html">statement.h</a></ul><hr><div align=center><a class=footer href="http://orcane.net/freeodbc++/">Go back to the freeodbc++ homepage</a></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -