Could you please let me no the query for below

I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..



Could you please let me no the query for below I have table name xyx under this there is column n..

Answer / devika

update XYZ
set empname(2,4) = 'PQRS'
where substr(empname(2,4))='ABCS'

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More DB2 Interview Questions

Mention the different locking levels that are available in db2.

0 Answers  


Is it possible to create an Instance in DB2 using DB2 Control Center ?

0 Answers   MCN Solutions,


Can we use select * statement in cobol program without giving field names ???

3 Answers   Zensar,


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

0 Answers  


Which catalog tables contain authorization information?

1 Answers  






wht happens if we close cursor with cursor with hold option?

3 Answers   Valtech,


i have table agdet i want first 5 maximum commission which query will you write for this thanks in advance

3 Answers  


What is the maximum length of a column name in DB2? 18 or 30 or anything other than these?

4 Answers  


i want to maintain uniqueness on pdf without make lf??????????

0 Answers  


What is data manager?

0 Answers  


What is the usage of open cursor command?

0 Answers  


Discuss about db2 bind?

0 Answers  


Categories