PosgreSQLのconvert関数をテーブルカラムに使用するとエラーになるのですが、固定値でしか使用できないのでしょうか?
function convert(character varying,unknown,unknown) does not exists
こちらは成功します。
select convert('あああ','utf-8','shift-jis')
from test_table
こちらはエラーになります。
select convert(col1_var,'utf-8','shift-jis')
from test_table
■テーブル定義
create table test_table (
col1_var character varying(100)
, col2_dec numeric
, col3_var character varying(100)
, col4 timestamp(6) without time zone
);
PosgreSQLのバージョンは13です。


回答1件
あなたの回答
tips
プレビュー