declare begin for i in (select * from emp) loop if i.sal=1300 then update emp set sal=13000; end if; end loop; end;
This code
here's a quick solution that helps in removing the spaces (trimming) of a column data based on created date:
UPDATE table_Name SET column_name = LTRIM(RTRIM(column_name)) WHERE EXTEND(dateTime_column, YEAR TO DAY)='2020-01-31' ;