📄 sqlexception.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/SQLWarning.html">SQLWarning</A></CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getWarnings()">getWarnings</A></B>()</CODE><BR> Retrieves the first warning reported by calls on this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#clearWarnings()">clearWarnings</A></B>()</CODE><BR> Clears all the warnings reported on this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#setCursorName(java.lang.String)">setCursorName</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Defines the SQL cursor name that will be used by subsequent <code>Statement</code> object <code>execute</code> methods.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#execute(java.lang.String)">execute</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql)</CODE><BR> Executes an SQL statement that may return multiple results.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/ResultSet.html">ResultSet</A></CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getResultSet()">getResultSet</A></B>()</CODE><BR> Returns the current result as a <code>ResultSet</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getUpdateCount()">getUpdateCount</A></B>()</CODE><BR> Returns the current result as an update count; if the result is a <code>ResultSet</code> object or there are no more results, -1 is returned.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getMoreResults()">getMoreResults</A></B>()</CODE><BR> Moves to a <code>Statement</code> object's next result.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#setFetchDirection(int)">setFetchDirection</A></B>(int direction)</CODE><BR> Gives the driver a hint as to the direction in which the rows in a result set will be processed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getFetchDirection()">getFetchDirection</A></B>()</CODE><BR> Retrieves the direction for fetching rows from database tables that is the default for result sets generated from this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#setFetchSize(int)">setFetchSize</A></B>(int rows)</CODE><BR> Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getFetchSize()">getFetchSize</A></B>()</CODE><BR> Retrieves the number of result set rows that is the default fetch size for result sets generated from this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getResultSetConcurrency()">getResultSetConcurrency</A></B>()</CODE><BR> Retrieves the result set concurrency for <code>ResultSet</code> objects generated by this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getResultSetType()">getResultSetType</A></B>()</CODE><BR> Retrieves the result set type for <code>ResultSet</code> objects generated by this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#addBatch(java.lang.String)">addBatch</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql)</CODE><BR> Adds an SQL command to the current batch of commmands for this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#clearBatch()">clearBatch</A></B>()</CODE><BR> Makes the set of commands in the current batch empty.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#executeBatch()">executeBatch</A></B>()</CODE><BR> Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/Connection.html">Connection</A></CODE></FONT></TD><TD><CODE><B>Statement.</B><B><A HREF="../../../java/sql/Statement.html#getConnection()">getConnection</A></B>()</CODE><BR> Returns the <code>Connection</code> object that produced this <code>Statement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/ResultSet.html">ResultSet</A></CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#executeQuery()">executeQuery</A></B>()</CODE><BR> Executes the SQL query in this <code>PreparedStatement</code> object and returns the result set generated by the query.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#executeUpdate()">executeUpdate</A></B>()</CODE><BR> Executes the SQL INSERT, UPDATE or DELETE statement in this <code>PreparedStatement</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setNull(int, int)">setNull</A></B>(int parameterIndex, int sqlType)</CODE><BR> Sets the designated parameter to SQL <code>NULL</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setBoolean(int, boolean)">setBoolean</A></B>(int parameterIndex, boolean x)</CODE><BR> Sets the designated parameter to a Java <code>boolean</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setByte(int, byte)">setByte</A></B>(int parameterIndex, byte x)</CODE><BR> Sets the designated parameter to a Java <code>byte</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setShort(int, short)">setShort</A></B>(int parameterIndex, short x)</CODE><BR> Sets the designated parameter to a Java <code>short</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setInt(int, int)">setInt</A></B>(int parameterIndex, int x)</CODE><BR> Sets the designated parameter to a Java <code>int</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setLong(int, long)">setLong</A></B>(int parameterIndex, long x)</CODE><BR> Sets the designated parameter to a Java <code>long</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setFloat(int, float)">setFloat</A></B>(int parameterIndex, float x)</CODE><BR> Sets the designated parameter to a Java <code>float</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setDouble(int, double)">setDouble</A></B>(int parameterIndex, double x)</CODE><BR> Sets the designated parameter to a Java <code>double</code> value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PreparedStatement.</B><B><A HREF="../../../java/sql/PreparedStatement.html#setBigDecimal(int, java.math.BigDecimal)">setBigDecimal</A></B>(int parameterIndex, <A HREF="../../../java/math/BigDecimal.html">BigDecimal</A> x)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -