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..

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2 instance?

587


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

651


My sql statement select avg(salary) from emp yields inaccurate results. Why?

637


What are the various data types available in db2?

626


What is db2 stogroup?

673






What is bind and rebind in db2?

644


What is the meaning concurrency in the db2 database?

630


What is dclgen in db2?

669


How do I copy a table in db2?

571


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

6808


What is check constraint. Explain with example.

639


Why select is not preferred in embedded sql programs?

705


How does cobol compile db2 program?

604


List out the three types of page locks that can be held.

681


List some fields from sqlca?

607