I have next query:
UPDATE public.user_item set instructions = concat('[', array_to_string(instructions::Text[], '", "')', ']') where instructions is not null;
It fails with error:
ERROR: malformed array literal: "["ERYTHRITOL, STEVIA LEAF EXTRACT, NATURAL FLAVORS."]" DETAIL: "[" must introduce explicitly-specified array dimensions.
type of field 'instructions' is text
2.1m questions
2.1m answers
60 comments
57.0k users