Postgresql – Use replace to update column value from another column
I have database that looks like this CREATE TABLE code ( id SERIAL, name VARCHAR(255) NOT NULL ); INSERT INTO code (name) VALUES ('random_value1_random'); INSERT INTO code (name) VALUES ('random_value123_random'); CREATE TABLE value ( id SERIAL, name VARCHAR(255) NOT NULL…