sql中blob转string mysql中字段类型为blob怎样变为字符串?
mysql中字段类型为blob怎样变为字符串?Blob getblob> read(byte[]b)> new string(byte[]bytes)InputStream在Blob和stri
mysql中字段类型为blob怎样变为字符串?
Blob getblob> read(byte[]b)> new string(byte[]bytes)InputStream在Blob和string OutputStream之间使用
db2如何插入blob?
要保存图片的字段列的类型,请将其设置为image,然后将其插入,采用其绝对路径将其插入表名值(@“C/123)。Jpg“”。可以使用blob(string)函数将字符串转换为blob并再次插入,如下所示:create table test(c1blob(200))insert into otestvalues(blob(“Hello,world”)。其他方法可能需要用其他语言编写,这些语言在数据库下操作