argos/dmp-db-scema/updates/06/03_Update_Researcher_Intern...

6 lines
139 B
SQL

UPDATE "Researcher"
SET "Reference" = CONCAT('dmp:', "ID")
WHERE "ID" IN (
SELECT "ID" FROM "Researcher"
WHERE "Reference" LIKE 'dmp:%'
)