PL/SQL procedure: UPDATE uppercase names to initcaps, with special handling for some values
I need a procedure to do something like this: original name: AMSTERDAM new name: Amsterdam. I made this procedure for it: create or replace PROCEDURE NaamRoutine is BEGIN update Gemeentenew set gemeentenaam = lower(gemeentenaam); update Gemeentenew set gemeentenaam = initcap(gemeentenaam); END; The problem is there are a couple of names that start like 'S GRAVENHAGE and need to be 's Gravenhage. Frank Schmitt Assuming the special handling is necessary only for names like 'S... , adding a simple REPLACE should work. BTW, you don't need two separate UPDATE statements - INITCAP will automatically