Sets the designated parameter to the given String value.

语法

public final void setString(int index,
                            java.lang.String str)

参数

index

An int that indicates the parameter number.

str

A String value.

异常

SQLServerException

备注

This setString method is specified by the setString method in the java.sql.PreparedStatement interface.

另请参见

SQLServerPreparedStatement Class
SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members