Re: Executing multiple queries at a time in Query Browser

2005-11-26 Thread SGreen
Colin Shreffler <[EMAIL PROTECTED]> wrote on 11/26/2005 04:44:26 PM: > Does anyone know how to separate queries so that I can run multiple insert > statements at once? > > For example, from within MySQL Query Browser, I want to load a file > containing multiple inserts and then run it. It erro

Executing multiple queries at a time in Query Browser

2005-11-26 Thread Colin Shreffler
Does anyone know how to separate queries so that I can run multiple insert statements at once? For example, from within MySQL Query Browser, I want to load a file containing multiple inserts and then run it. It errors however on trying to run the following queries: insert into project_type (proj

RE: Multiple Queries

2004-06-14 Thread emierzwa
McNeil [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 1:24 PM To: MySQL General Subject: Multiple Queries RE - I have a situation where, within a PHP loop, I am creating over one hundred SQL statement (INSERTS and UPDATES). Would it cut any overhead to send 20 ";" seperated quer

Multiple Queries

2004-06-14 Thread Paul McNeil
RE - I have a situation where, within a PHP loop, I am creating over one hundred SQL statement (INSERTS and UPDATES). Would it cut any overhead to send 20 ";" seperated queries in one mysql_query() statement, and therefore only execute mysql_query() 5 times for 100 statements, as opposed to sendin

RE: Sending multiple queries to MySQL (sorry, hit send by accident!)

2004-06-14 Thread SGreen
8 Fax to: PM Subject: RE: Sending multiple queries to MySQL (sorry, hit

RE: Sending multiple queries to MySQL (sorry, hit send by accident!)

2004-06-14 Thread emierzwa
. Ed -Original Message- From: Andy Hall [mailto:[EMAIL PROTECTED] Subject: Sending multiple queries to MySQL (sorry, hit send by accident!) Hi, I have a situation where, within a PHP loop, I am creating over one hundred SQL statement (INSERTS and UPDATES). Would it cut any overhead to

Sending multiple queries to MySQL (sorry, hit send by accident!)

2004-06-11 Thread Andy Hall
Hi, I have a situation where, within a PHP loop, I am creating over one hundred SQL statement (INSERTS and UPDATES). Would it cut any overhead to send 20 ";" seperated queries in one mysql_query() statement, and therefore only execute mysql_query() 5 times for 100 statements, as opposed to sen

Sending multiple queries to MySQL

2004-06-11 Thread Andy Hall
Hi, I have a situation where, within a PHP loop, I am creating over one hundred SQL statement (INSERTS and UPDATES). Would it cut any overhead to send 20 ";" seperated queries in one mysql_query() statement, and therefore only execute mysql_query() 5 times for 100 statements, as opposed to sen

Re: Better Solution than Multiple Queries?

2004-04-09 Thread beacker
Tim McDonough writes: >The solution I presently have does a query for the first criteria. >Then, I loop through the results of that query and do another query >for each returned row. This produces the desired results but requires >a lot of queries, i.e.-- if the first query returns 1000 customer

Re: Better Solution than Multiple Queries?

2004-04-09 Thread Jigal van Hemert
> I have an application where I want to look for records that match > certain criteria and then for each item found do a second lookup for > additional information. Normally I would do a join. In this case > however I want to display each of the results from the first of the > two criteria whether

Re: Better Solution than Multiple Queries?

2004-04-09 Thread Roger Baklund
* Tim McDonough > I have an application where I want to look for records that match > certain criteria and then for each item found do a second lookup for > additional information. Normally I would do a join. In this case > however I want to display each of the results from the first of the >

RE: Better Solution than Multiple Queries?

2004-04-09 Thread Victor Pendleton
CTED] Sent: 4/9/04 8:20 AM Subject: Better Solution than Multiple Queries? I have an application where I want to look for records that match certain criteria and then for each item found do a second lookup for additional information. Normally I would do a join. In this case however I want to di

Better Solution than Multiple Queries?

2004-04-09 Thread Tim McDonough
I have an application where I want to look for records that match certain criteria and then for each item found do a second lookup for additional information. Normally I would do a join. In this case however I want to display each of the results from the first of the two criteria whether or not the

Re: group multiple queries.. if one fails all fail

2003-01-23 Thread Steve Edberg
This would be called transactions: your're looking for COMMIT/ROLLBACK. As far as I know, transactions are only available on BDB and InnoDb table types. See http://www.mysql.com/doc/en/Transactional_Commands.html http://www.mysql.com/doc/en/InnoDB_overview.html At 12:24 AM 1/

group multiple queries.. if one fails all fail

2003-01-23 Thread Ciprian I. Acatrinei
Hi, I looked a lot and I couldn't find a solution to this problem: Ex: I have 5 queries. I run them and one of them fails. The rest are ok. So 4 tables are affected and one is not. Is there a way of testing the queries if they will be successful and only if all of them are then they should be run

group multiple queries.. if one fails all fail

2003-01-23 Thread Ciprian I. Acatrinei
Hi, I looked a lot and I couldn't find a solution to this problem: Ex: I have 5 queries. I run them and one of them fails. The rest are ok. So 4 tables are affected and one is not. Is there a way of testing the queries if they will be successful and only if all of them are then they should be run

Re: Multiple Queries

2002-05-31 Thread Brent Baisley
You can create another frame that's "invisible" by having a zero height or width. This can be your page that does all the queries and refreshes. You can then use the javascript command document.write() to update the other frames without having to hit the server again. Or, retrieve the data in the

Re: Multiple Queries

2002-05-31 Thread Adam Hooper
You're running 3 entirely independent scripts, so they can't share a connection. You may save an infinitessimal amount of time by using mysql_pconnect() instead of mysql_connect(), which will give each process/thread a permanent database connection, so it doesn't have to connect every time. Ad

Multiple Queries

2002-05-31 Thread Caspar Kennerdale
Sorry If this is the wrong list for this topic, I hope someone can shed some light onto my problem. I am building a php/ Mysql web site for a client which is a picture gallery. The web site has 3 frames (required by the designer so that the whole thing doesnt refresh all the time). Frame 1- Navig

Re: Running multiple queries using "MySql" client

2002-04-15 Thread Mark Dale
Hi insert into mytbl (a1) values (12),(13),(14); cheers Mark --- On Mon, 15 Apr 2002, Bill Adair wrote: > Hello all, > I'm in a mysql client session and I want to do multiple inserts > into a table (or run a multi-query script etc). Thi

Running multiple queries using "MySql" client

2002-04-15 Thread Bill Adair
Hello all, I'm in a mysql client session and I want to do multiple inserts into a table (or run a multi-query script etc). This doesn't work so what's the correct seperator / methodology? INSERT INTO mytbl (a1) VALUES (12); INSERT INTO mytbl (a1) VALUES (13); INSERT INTO mytbl (a1) VALUES (14); \

Re: Multiple queries

2001-10-03 Thread Benjamin Pflugmann
t all possible or if it's practical to combine them into one large > query. The single query I tried doesn't produce the proper results. The multiple > queries below do produce the desired results, but I'd like to combine them into > one single query, if it's possible. Th

Re: Multiple queries

2001-10-02 Thread Carl Troein
[EMAIL PROTECTED] writes: > I've been trying to figure out a way to combine all these queries into one query > , if it's at all possible or if it's practical to combine them into one large > query. The single query I tried doesn't produce the proper results. [SNIP] I'm not surprised, seeing how

Multiple queries

2001-10-02 Thread mickalo
I tried doesn't produce the proper results. The multiple queries below do produce the desired results, but I'd like to combine them into one single query, if it's possible. TOTAL SUMMARY PAYIN's/PAYOUT's(single query) select format(sum(po.refund_charge*.95),2) as RefundC