Sets the designated parameter to the given String
object.
The driver converts this to a SQL NCHAR
or
NVARCHAR
or LONGNVARCHAR
value
(depending on the argument's
size relative to the driver's limits on NVARCHAR
values)
when it sends it to the database.
parameterIndex | of the first parameter is 1, the second is 2, ... | |
value | the parameter value |
SQLException | if parameterIndex does not correspond to a parameter
marker in the SQL statement; if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; if a database access error occurs; or
this method is called on a closed PreparedStatement | |
SQLFeatureNotSupportedException | if the JDBC driver does not support this method |
Diagram: Statement