I need to run this four times how can i do it in one line or may be less lines
update opp set run_mode = 0, run_time = 0,
where oppar_job_name in ('ABC') ) and oppar_job_rec in ('ABC');
update opp set run_mode = 0, run_time = 0,
where oppar_job_name in ('DEF') ) and oppar_job_rec in ('DEF');
update opp set run_mode = 0, run_time = 0,
where oppar_job_name in ('FGH') ) and oppar_job_rec in ('FGH');
update opp set run_mode = 0, run_time = 0,
where oppar_job_name in ('IJK') ) and oppar_job_rec in ('IJK');
I am thinking of trying this.
update opp set run_mode = 0, run_time = 0,
where oppar_job_name in (
'ABC',
'DEF',
'FGH',
'IJK'
) and oppar_job_rec in
(
'ABC',
'DEF',
'FGH',
'IJK'
);
Is the just above thing correct.
I mean there is a one to one correspondence in the table like
ABC ABC
DEF DEF
FGH FGH
IJK IJK
If I understand well:
It’s better with extra parenthesis 😉