Re: sql syntax problem

From: Date: Mon, 13 Dec 2004 17:23:19 +0000
Subject: Re: sql syntax problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204198@lists.php.net to get a copy of this message
Merlin wrote: > SELECT c.name AS city > FROM geo_de.geodb_locations AS c, fix.user AS u > WHERE u.user_id =4 AND c.plz > LIKE "%u.plz%"; I believe you want something not unlike this: WHERE u.user_id = 4 AND c.plz LIKE concat('%', u.plz, '%') -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#204198) next »