我需要将base64字符串转换为bytea类型。但是,当我执行的由pgAdminIII SQL语句:如何将base64字符串转换为postgresql8.2中的bytea
select decode("ygAAA", 'base64');
,我得到了以下错误消息:
ERROR: syntax error at or near ")"
LINE 1: select decode('ygAAA', 'base64');
^
********** 错误 **********
ERROR: syntax error at or near ")"
SQL 状态: 42601
字符:59
我的PostgreSQL的版本是8.2.15。我可以使用编码功能。 我GOOGLE了它,但没有找到解决方案。有人能帮助我吗? TKS!
您的错误与您的查询无关 –