共用方式為


setTimestamp Method (int, java.sql.Timestamp)

Sets the designated parameter to the given timestamp value.

public final void setTimestamp(int n,
                               java.sql.Timestamp x)

參數

n

An int that indicates the parameter number.

x

A Timestamp object.

例外狀況

SQLServerException

備註

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

另請參閱

參考

SQLServerPreparedStatement Class

概念

setTimestamp Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members