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

Usually, which is more important for DB2 system performance - CPU processing or I/O access?

1 Answers  


What is QUIESCE?

2 Answers  


Is it possible using max on a char column?

0 Answers  


What is host variable in db2 cobol?

0 Answers  


What is a DB2 bind?

3 Answers  






How do I delete a column in db2?

0 Answers  


What is the syntax for FETCH in DB2 ?

0 Answers   MCN Solutions,


Explain the use of the WHERE clause.

2 Answers   IBM,


what is difference between Plan and Package

1 Answers   Syntel,


Name the various locking levels available?

0 Answers  


Which component is used to execute the sql statements?

0 Answers  


What is precompiler in db2?

0 Answers  


Categories