我需要将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 ×1