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: 19243
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts After newcopy the CICS program user f... CICS 7
No new posts Queue application affecting performance CICS 12
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Starting a CICS Transaction from a Th... CICS 0
Search our Forums:


Back to Top