using For loop
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > using For loop




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    using For loop  
chaitu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-21-06 06:19 PM

Hi,
Can anybody help me on how to select lines from two different files and

generate them in a loop. Here's the detailed explanation.

I have two tables like this fk_4.log and fk_5.log


fk_4.log containt the table name which have Foriegn keys and fk_5.log
contains the constraints names. I have taken these info from
syscat.references. I also made a db2look and they are the same.


fk_4.log


BLUEE.INDIVIDUAL_PROVIDER
BLUEE.INDIVIDUAL_PROVIDER_AUDIT
BLUEE.VENDOR_CLAIMS_SUB_NPI_AUDIT
BLUEE.VENDOR_CLAIMS_SUBMISSION_NPI
BLUEE.VENDOR_PAYMENT_NPI
BLUEE.VENDOR_PAYMENT_NPI_AUDIT
BLUEE.VENDOR_PROVIDER
BLUEE.VENDOR_PROVIDER_AUDIT


fk_5.log


SQL051122142952700
SQL051122142952670
SQL051122142952540
SQL051122142952560
SQL051122142952590
SQL051122142952450
SQL051122142952640
SQL051122142952610


Now. is there a way to select both tables and constraints at the same
time and generate a loop suchthat the following command is executted?


db2 ALTER TABLE BLUEE.INDIVIDUAL_PROVIDER ALTER FOREIGN KEY
SQL051122142952700 NOT ENFORCED. I have tried using for loop but wasn't

successful.


Thank You in advance






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:59 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register