Create function with loop to be used in UPDATE – Postgresql
In my Postgres 13 DB I want to update a column mother_tongues_id in my table based on name columns. Names are like "Le Minh Thien" and I want to check if those contain words like 'le' or 'lee' then set…