hsqldb - How to insert a hex string to a longvarbinary column in hsql? -
how make work in hsql insert script? image column datatype longvarbinary.
insert item (id, image) values (1, '0xffd8ffe000104a464');
the binary literal format in sql language has x prefix outside quoted string.
note string must have number of characters. example work if add 1 character make string length even.
insert item (id, image) values (1, x'ffd8ffe000104a4640');
see http://www.hsqldb.org/doc/guide/dataaccess-chapt.html#dac_literals
wiki
Comments
Post a Comment