Using ORACLE sql developer
I have:
Field ID 1: '006789'
Field ID 2: '026789'
Field ID 3: '126789'
I want:
Field ID 1: '6789'
Field ID 2: '26789'
Field ID 3: '126789'
This lives in table "EMPLOYEES"
I want to do something like this
begin
if FIELD_ID is like '00%' then
update EMPLOYEES
set FIELD_ID = %s/\%1c..//
elseif FIELD_ID is like '0%' then
update EMPLOYEES
set FIELD_ID = %s/\%1c.//
endif;
I'm really new to procedures and regex (obviously).