If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to write sub queries ..under this condition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-03, 10:16
oracle_student oracle_student is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
how to write sub queries ..under this condition

Hi,

i want to update my primary key.in my table....

but it is used as foreign keys....

i want to update using single query..it is possible for me to update it..

pls give me idea for updating using query....

reply me..

thanx....
Reply With Quote
  #2 (permalink)  
Old 12-02-03, 16:36
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: how to write sub queries ..under this condition

If you are on Version 8, have a look at the MERGE Statement and see if it helps ...

It will be highly appreciated if you can post your findings here

Cheers
Sathyaram

Quote:
Originally posted by oracle_student
Hi,

i want to update my primary key.in my table....

but it is used as foreign keys....

i want to update using single query..it is possible for me to update it..

pls give me idea for updating using query....

reply me..

thanx....
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On