Retrieves the value of a JDBC CHAR
, VARCHAR
,
or LONGVARCHAR
parameter as a String
in
the Java programming language.
For the fixed-length type JDBC CHAR
,
the String
object
returned has exactly the same value the SQL
CHAR
value had in the
database, including any padding added by the database.
parameterName | the name of the parameter |
NULL
, the result
is null
.
SQLException | if parameterName does not correspond to a named
parameter; if a database access error occurs or
this method is called on a closed CallableStatement | |
SQLFeatureNotSupportedException | if the JDBC driver does not support this method |
setString
Diagram: Statement