Guest_imported
New member
- Jan 1, 1970
- 0
hi guys
i have to created one conditional
i have to create where claused depend on variable
please help to do this.
if substring(jcode)='JOB'
set VAR1='JOB_CODE'
else
set VAR1='JOB_SALORDNO'
if exist(select * from jobmast where @var1='000152JOBA')
what wrong in it does not work
m.a.khaleel
i have to created one conditional
i have to create where claused depend on variable
please help to do this.
if substring(jcode)='JOB'
set VAR1='JOB_CODE'
else
set VAR1='JOB_SALORDNO'
if exist(select * from jobmast where @var1='000152JOBA')
what wrong in it does not work
m.a.khaleel