setBytes method

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

Syntax
setBytes( UInt16 columnID, Array value )
Parameters
  • columnID   The ID number of the column. The first column in the table has an ID value of one.

  • value   The new value for the column.

Remarks

Suitable for columns of type SQLType.BINARY or SQLType.LONGBINARY only. The data in the row is not actually changed until you execute an insert or update, and that change is not permanent until it is committed.

Example

The following statements set the value of the first column:

var blob = new Array( 3 );
blob[ 0 ] = 78;
blob[ 1 ] = 0'
blob[ 2 ] = 68;
t.setBytes( 1, blob );