Re: multiple queries in the same "request"

From: Date: Mon, 20 Jun 2005 14:53:02 +0000
Subject: Re: multiple queries in the same "request"
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-39711@lists.php.net to get a copy of this message
Gabriel B. wrote:
SELECT (@category_id:=id) FROM categories WHERE description = "cat1"; REPLACE INTO data VALUES( 10, @category_id); i send this as a single query in PHP and it returns an error quoting everything after the first ";" anyidea if i can't send several queries at once? any workaround? You can't send multiple queries in an SQL statement. You can just split that in two separates queries. It's not really slower by any practical means because the DB system would have to execute them both anyway.
-- Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus]

« previous php.db (#39711) next »