📄 resultsetmetadata.html
字号:
throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Indicates the designated column's normal maximum width in characters.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>the normal maximum number of characters allowed as the width of the designated column<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getColumnLabel(int)"><!-- --></A><H3>getColumnLabel</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getColumnLabel</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Gets the designated column's suggested title for use in printouts and displays.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>the suggested column title<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getColumnName(int)"><!-- --></A><H3>getColumnName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getColumnName</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Get the designated column's name.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>column name<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getSchemaName(int)"><!-- --></A><H3>getSchemaName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getSchemaName</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Get the designated column's table's schema.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>schema name or "" if not applicable<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getPrecision(int)"><!-- --></A><H3>getPrecision</H3><PRE>public int <B>getPrecision</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Get the designated column's number of decimal digits.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>precision<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getScale(int)"><!-- --></A><H3>getScale</H3><PRE>public int <B>getScale</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Gets the designated column's number of digits to right of the decimal point.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>scale<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getTableName(int)"><!-- --></A><H3>getTableName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getTableName</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Gets the designated column's table name.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>table name or "" if not applicable<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getCatalogName(int)"><!-- --></A><H3>getCatalogName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getCatalogName</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Gets the designated column's table's catalog name.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>column name or "" if not applicable<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getColumnType(int)"><!-- --></A><H3>getColumnType</H3><PRE>public int <B>getColumnType</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Retrieves the designated column's SQL type.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>SQL type from java.sql.Types<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs<DT><B>See Also: </B><DD><A HREF="../../java/sql/Types.html"><CODE>Types</CODE></A></DL></DD></DL><HR><A NAME="getColumnTypeName(int)"><!-- --></A><H3>getColumnTypeName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getColumnTypeName</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Retrieves the designated column's database-specific type name.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD>type name used by the database. If the column type is a user-defined type, then a fully-qualified type name is returned.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="isReadOnly(int)"><!-- --></A><H3>isReadOnly</H3><PRE>public boolean <B>isReadOnly</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Indicates whether the designated column is definitely not writable.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD><code>true</code> if so; <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="isWritable(int)"><!-- --></A><H3>isWritable</H3><PRE>public boolean <B>isWritable</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Indicates whether it is possible for a write on the designated column to succeed.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD><code>true</code> if so; <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="isDefinitelyWritable(int)"><!-- --></A><H3>isDefinitelyWritable</H3><PRE>public boolean <B>isDefinitelyWritable</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Indicates whether a write on the designated column will definitely succeed.<DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the first column is 1, the second is 2, ...<DT><B>Returns:</B><DD><code>true</code> if so; <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="getColumnClassName(int)"><!-- --></A><H3>getColumnClassName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getColumnClassName</B>(int column) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD><p>Returns the fully-qualified name of the Java class whose instances are manufactured if the method <code>ResultSet.getObject</code> is called to retrieve a value from the column. <code>ResultSet.getObject</code> may return a subclass of the class returned by this method.<DD><DL><DT><B>Returns:</B><DD>the fully-qualified name of the class in the Java programming language that would be used by the method <code>ResultSet.getObject</code> to retrieve the value in the specified column. This is the class name used for custom mapping.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC 2.0 API</a></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ResultSetMetaData.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/sql/ResultSet.html"><B>PREV CLASS</B></A> <A HREF="../../java/sql/SQLData.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ResultSetMetaData.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -