Query Batch
From: B B (hell_wild_hot2_at_yahoo.com)
Date: 11/19/03
- Next message: John W. Holmes: "Re: [PHP] Mysql question"
- Previous message: Raditha Dissanayake: "Re: [PHP] Mysql question"
- In reply to: John Nichel: "Re: [PHP] Mysql question"
- Next in thread: John W. Holmes: "Re: [PHP] Query Batch"
- Reply: John W. Holmes: "Re: [PHP] Query Batch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 18 Nov 2003 18:32:26 -0800 (PST) To: php-general@lists.php.net
Jhon you mentioned that one may send a batch of
queries with mysql_list? maybe I understood you wrong.
I am translating an MS-SQL application into
mysql/php. I need to be able to send a batch of
queries all at once. For example:
$qStr = " Insert into A(name, address)
values('$name', '$address') ; Insert into B(personID,
department ...)values (@@identity, '$department');" ;
$result= mysql_query($qStr, $link) ;
In this case I inserted in two tables. for some
reason it doesn't allow me to have to sql statements
in $qStr. Is there a way around that.
My other option is to have one sql statement per
query .... but this would be very inefficient if I
have ti do tens of inserts in one batch ...
Cheers.
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
- Next message: John W. Holmes: "Re: [PHP] Mysql question"
- Previous message: Raditha Dissanayake: "Re: [PHP] Mysql question"
- In reply to: John Nichel: "Re: [PHP] Mysql question"
- Next in thread: John W. Holmes: "Re: [PHP] Query Batch"
- Reply: John W. Holmes: "Re: [PHP] Query Batch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|