what I am doing wrong? update the procedure

cannot understand it. get errors trying to compile. Perhaps an error of syntax with the single quotes / double for NEWSTATUS and 12345?

create or replace

PROCEDURE TEST_UPDATE

as

BEGIN

SQLU: = "UPDATE TABLE1@DBLINK SET STATUS = 'NEWSTATUS' where the project of '12345' = '; "

run immedate sqlu;

commit;

end;

I get:

PLS-00103

ORA-00904

ORA-00933

PLS-00103

708631 wrote:

No, it did not work. Even if I do not run always immediate problems and may not compile.

It should work, but it doesn't.

create or replace PROCEDURE TEST_UPDATE

is

BEGIN

UPDATE TABLE1@DBLINK SET STATUS = 'NEWSTATUS' where of the PROJECT = "12345";

commit;

end;

That's because you wrap your values with 2 quotes try only with single quotes.

for example

Update table1@dblink set status is 'NEWSTATUS' where of the project = '12345'.;

Tags: Database

Similar Questions

Maybe you are looking for