complicated transtable problem

From: Date: Thu, 18 Apr 2002 16:34:09 +0000
Subject: complicated transtable problem
Groups: php.db 
Request: Send a blank email to php-db+get-18650@lists.php.net to get a copy of this message
Hi there, I am still struggling with following problem: There are two tables in mysql 1. city fields: ID, countryid, provinceid, city containing 2.5 million entries. 2. province fields: ID, countryid, provinceid, provincename Now there are some cities without a valid province id in the other table. Means that those city do not find the right province name. I would like to: 1. delete those province rows (all belonging to this country) in the province table 2. set the province_id to "" in the city table. Seems to be complicated.. maybe someone could give me a hint on this Thanx, Andy

« previous php.db (#18650) next »