× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



At 16:05 10/05/2001, Kirk Yates wrote:
>I have several files that I need to change information in one field from
>one value to another.  I have a file that has the old value and the new
>value.  Is it possible to read the one file with CL, then pass the 2
>variables to a SQL command that will update  a field in another file
>when the field in the other file matches to old value that was read from
>the file with a CL program?


That's been possible to do directly with SQL for a couple of years now:

  UPDATE TABLE1 SET
    COL1 = (SELECT NEW2 FROM TABLE2
              WHERE NEW1 = COL1)
  WHERE EXISTS (SELECT * FROM TABLE2
              WHERE NEW1 = COL1)


Pete Hall
pbhall@execpc.com
http://www.execpc.com/~pbhall/



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.