IPreparedStatement.SetTimestamp IPreparedStatement.SetTimestamp Method

Definition

Overloads

SetTimestamp(Int32, Timestamp) SetTimestamp(Int32, Timestamp)

Sets the value of a specified parameter to a supplied java.sql.

SetTimestamp(Int32, Timestamp, Calendar) SetTimestamp(Int32, Timestamp, Calendar)

Sets the value of a specified parameter to a supplied java.sql.Timestamp value, using the supplied Calendar.

SetTimestamp(Int32, Timestamp) SetTimestamp(Int32, Timestamp)

Sets the value of a specified parameter to a supplied java.sql.

[Android.Runtime.Register("setTimestamp", "(ILjava/sql/Timestamp;)V", "GetSetTimestamp_ILjava_sql_Timestamp_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTimestamp (int parameterIndex, Java.Sql.Timestamp x);
abstract member SetTimestamp : int * Java.Sql.Timestamp -> unit

Parameters

parameterIndex
Int32 Int32

the parameter number index, where the first parameter has index 1.

Exceptions

if a database error happens.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetTimestamp(Int32, Timestamp, Calendar) SetTimestamp(Int32, Timestamp, Calendar)

Sets the value of a specified parameter to a supplied java.sql.Timestamp value, using the supplied Calendar.

[Android.Runtime.Register("setTimestamp", "(ILjava/sql/Timestamp;Ljava/util/Calendar;)V", "GetSetTimestamp_ILjava_sql_Timestamp_Ljava_util_Calendar_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTimestamp (int parameterIndex, Java.Sql.Timestamp x, Java.Util.Calendar cal);
abstract member SetTimestamp : int * Java.Sql.Timestamp * Java.Util.Calendar -> unit

Parameters

parameterIndex
Int32 Int32

the parameter number index, where the first parameter has index 1.

cal
Calendar Calendar

a Calendar to use to construct the SQL TIMESTAMP value

Exceptions

if a database error happens.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to