最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

POSTGRESQL edit varbinary data - Stack Overflow

programmeradmin6浏览0评论

I have a POSTGRESQL database that stores images in a bytea field. The data was imported incorrectly where an extra backslash ('') to the octal numeral. Below is a part of the bytea data stored in the database.

II*\\000\\010\\000\\000\\000\\023\\000\\376\\000\\004

I also included a screenshot of what I see below

The data should look something like this

II*\000\010\000\000\000\023\000\376\000\004

I have the SQL scripting with INSERT command, but the file is 250GB. I go down the path of modifying the INSERT script, I want to see if there is a way to remove the extract backslash, like using the REPLACE() function or anything like that to correct it?

Just trying to find out my options before I make a move.

发布评论

评论列表(0)

  1. 暂无评论