I have a table MYTABLE in a database with several columns.
a given column DOGCOLORS is valued in all rows with multiple values:
1: yellowredgreen 2: redpurplegreen 3: blackgreengray
I am trying to find a query that updates the value "green" with vaue "orange" in every value of the column DOGCOLORS in table MYTABLE
BEGIN TRANSACTION;
UPDATE MYTABLE
SET DOGCOLORS=REPLACE(DOGCOLORS,'red','orange');
COMMIT TRANSACTION;
the result should be something like:
1: yellowredorange 2: redpurpleorange 3: blackorangegray
the query im running on DBeaver gives those errors: PL/SQL: ORA-02185: a token other than WORK follows COMMIT Encountered the symbol "end-of-file" when expecting one of the following:
;
any help appreciated
Just replace
COMMIT TRANSACTION;
withCOMMIT;
. Also you don't need 'BEGIN TRANSACTION;' it starts automatically