小编Pra*_*T.P的帖子

Postgresql base64编码

我需要将db值转换为base64encode.我试过了:

 select encode(cast(est_name as text),'base64') from establishments;
Run Code Online (Sandbox Code Playgroud)

它显示错误

[SQL]select encode(string(cast(est_name as text)),'base64') from establishments;

[Err] ERROR:  function string(text) does not exist
LINE 1: select encode(string(cast(est_name as text)),'base64') from ...
                      ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
Run Code Online (Sandbox Code Playgroud)

哪里错了?请帮忙.提前致谢

postgresql

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

postgresql ×1