Postgresql values not inserting

Hi I am trying to add following values to my table, but it gives following error,

ERROR: syntax error at or near “::” LINE 1:
…tion))/nullif((s_totalnorevws),0),’FM99,999,999′))::characte…

insert into testschema.tbls values (212,to_char(((s_sumdduration))/nullif((s_totalnorevws),0),'FM99,999,999'))::character varying as ob_arht);

Go to Source
Author: Aditya Vyas-Lakhan