Oracle8i JDBC Developer's Guide and Reference Release 3 (8.1.7) Part Number A83724-01 |
|
Table 3-2 in Chapter 3 describes the default mappings between Java classes and SQL datatypes supported by the Oracle JDBC drivers. Compare the contents of the JDBC Datatypes, Standard Java Types and SQL Datatypes columns in Table 3-2 with the contents of Table 21-1 below.
Table 21-1 lists all the possible Java types to which a given SQL datatype can be validly mapped. The Oracle JDBC drivers will support these "non-default" mappings. For example, to materialize SQL CHAR
data in an oracle.sql.CHAR
object use the getCHAR()
method. To materialize it as a java.math.BigDecimal
object, use the getBigDecimal()
method.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|