R
R
Rumiour2019-10-08 07:28:28
Oracle
Rumiour, 2019-10-08 07:28:28

Procedure for changing data in Oracle SQL?

Can you help write a code that will check the ntype status, if ntype is 1 then the status needs to be changed from 0 to 1.
I tried to write a c FOR loop but it doesn’t work.
sql fiddle
5d9c10c6d8c50424117932.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2019-10-08
@idShura

UPDATE BONUS_FOR_AGENT SET STATUS = 1 WHERE NTYPE = 1 AND STATUS = 0;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question