SQL script fixing "Researcher" reference prefix.

This commit is contained in:
gkolokythas 2020-01-16 11:13:45 +02:00
parent e1af4eacbe
commit 66a5157f62
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
UPDATE "Researcher"
SET "Reference" = CONCAT(LOWER(LEFT("Reference", 1)), SUBSTRING("Reference", 2))
WHERE "ID" in (
SELECT "ID" FROM "Researcher"
WHERE ASCII(LEFT("Reference", 1)) BETWEEN ASCII('A') AND ASCII('Z')
)