How can I do the following:

update location set location.city_id = location_city.city_id where
location.city = location_city.name;

I want to update one field in a table with values from another table. Is
this possible within MySQL or do I need to write some code to do this.

Any help would be greatly appreciated. Thanks.

-- 

Clarence Kwei

[EMAIL PROTECTED]

ScienCentral, Inc.
(212) 244-9577 ext. 118

<http://www.stn2.com>
<http://www.sciencentral.com>



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to