I am trying to update a text field in a table of my postgresql database.
UPDATE public.table SET long_text = \'First Line\' + CHAR(10) + \'Second line.\' WHE
PostgreSQL:
varchar + varchar = ERROR. \ r and \ n is not anywhere that works, for greater compatibility use:
Corret:
UPDATE public.table SET long_text = concat('First Line',CHR(13),CHR(10),'Second line.') WHERE id = 19;