IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

updating table through application program.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venkateswara rao.muppa

New User


Joined: 21 May 2007
Posts: 5
Location: hyderabad

PostPosted: Fri Aug 31, 2007 6:23 pm
Reply with quote

hi,
could you please tell the syntax how to update peticular through using
another column condition.
just like i want update the salary whoose eid is '1111' from emp table.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 31, 2007 10:41 pm
Reply with quote

Hello,

You want something like
Code:
EXEC SQL
UPDATE EMPLOYEE
SET PHONENO='NONUM' WHERE PHONENO IS NULL;
END;
which was in another DB2 topic.

You need to change the table name, column name and "where" value to meet your requirement.

If you Search before posting, you will often find a useful answer very quickly and not need to wait for a reply.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top