Quote:
|
Originally Posted by gardenman
use:
db2 "insert into blobtab values(1, blob('65'))"
|
Thanks again, it works... However, when trying to update what I've just inserted it fails!
Code:
$ db2 "insert into blobtab values(1, blob('75'))"
DB20000I The SQL command completed successfully.
Code:
$ db2 "update blobtab set stats=blob('85') where stats = blob('75')"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0401N The data types of the operands for the operation "=" are not
compatible. SQLSTATE=42818
Code:
$ db2 "update blobtab set stats= blob('95') where stats = blob(x'3735')"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0401N The data types of the operands for the operation "=" are not
compatible. SQLSTATE=42818
TIA.