running a big sql script
| From: | Christian Dechery | Date: | Tue, 20 Feb 2001 01:19:54 +0000 |
| Subject: | running a big sql script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40670@lists.php.net to get a copy of this message | ||
I have a complex query, that because of mysql's lack of resources became twice as big and complex.
I had to create a temporary table and put stuff in it and then select data from it, cuz 'union' is not available...
but I can't execute the whole script once, can I?
like
$sql="create temporary table tmp; insert into tmp select bla bla bla; ";
$sql.="insert into tmp select bla bla; select * from tmp;";
I cant mysql_query($sql)... it gives me an error msg? Do I really have to run each step of the script as a separated query????
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer