Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - M-Business Anywhere Programming » UltraLite for M-Business Anywhere API Reference » PreparedStatement class

 setBooleanParameter method Next Page

setBytesParameter method


Sets the value for the specified parameter using an array of bytes.

Syntax

setBytesParameter( UInt16 parameterID, Array value )

Parameters
Remarks

Suitable for columns of type SQLType.BINARY or SQLType.LONGBINARY only.

Example

The following statement sets a value for the first parameter:

var blob = new Array( 3 );
blob[ 0 ] = 78;
blob[ 1 ] = 0;
blob[ 2 ] = 68;
stmt.setBytesParameter( 1, blob );