Solve “cannot perform a DML operation inside a query ” [duplicate]
问题 This question already has answers here : Solution to “cannot perform a DML operation inside a query”? (3 answers) Closed 6 months ago . The pl SQL script below transfers the amount c of money from account a to b. Why isn't allowed to update the table in the function / how can it be fixed? create or replace function ueberweisung (a varchar2, b varchar2,c number) RETURN varchar2 IS k1 number; -- Variablendeklaration k2 number; BEGIN SELECT saldo into k1 FROM konto WHERE konto_nr=a; SELECT saldo