Re: One form multiple inserts

2004-08-27 Thread SGreen
I did that as a convenience. Basically it provided me two ways of uniquely identifying any row in a table(an auto_inc integer, and some unique text column). The autoincremented values should never repeat. HOWEVER because I did not put a UNIQUE constraint on them, it is possible for someone to c

Re: One form multiple inserts

2004-08-25 Thread Stuart Felenstein
Too funny! I'm slowly coming to grips on the M2M. I decided not to opt for it in this situation as I still believe it would not address my issues. My problem, or a better to phrase it , my solution is that I am not supplying titles. They are, to the user , blank fields , left to them to supply t

Re: One form multiple inserts

2004-08-25 Thread SGreen
Stuart, You need to begin to divorce these two processes from each other: STORAGE and INPUT/OUTPUT. What your user's see on a web page doesn't need to look anything at all like your database structure. A user interface (UI) is designed for ease of use. The other is designed for query and stora

Re: One form multiple inserts

2004-08-25 Thread Stuart Felenstein
Never mind, finally figured it out on my own. Sorry , i think out loud sometimes! Stuart --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > Trying to figure out how this gets done. Let me > explain first. By the way I hope this is not off > topic > as perhaps it is more towards application the

One form multiple inserts

2004-08-24 Thread Stuart Felenstein
Trying to figure out how this gets done. Let me explain first. By the way I hope this is not off topic as perhaps it is more towards application then core db . I have a table: Count[int][auto-increment], MemberID[int], Title[varchar], TitleYear[int] In my organization members can have or have he

Re: Multiple inserts in one statement

2004-07-26 Thread Paul DuBois
At 14:32 -0700 7/22/04, Scott Haneda wrote: I was just reading a forum post on mysql, someone said it was possible in mysql 4 to insert data into more than one table at once. Is this possible, if so, where in the docs can I see a example of this? Scott, Perhaps you could ask "someone" to provide a

Re: Multiple inserts in one statement

2004-07-26 Thread Egor Egorov
Scott Haneda <[EMAIL PROTECTED]> wrote: > I was just reading a forum post on mysql, someone said it was possible in > mysql 4 to insert data into more than one table at once. Is this possible, > if so, where in the docs can I see a example of this? Not possible. What is possible is inserting sev

Multiple inserts in one statement

2004-07-22 Thread Scott Haneda
I was just reading a forum post on mysql, someone said it was possible in mysql 4 to insert data into more than one table at once. Is this possible, if so, where in the docs can I see a example of this? -- - Scott Haneda

Multiple inserts in one statement

2004-07-21 Thread Scott Haneda
I was just reading a forum post on mysql, someone said it was possible in mysql 4 to insert data into more than one table at once. Is this possible, if so, where in the docs can I see a example of this? -- - Scott Haneda

Re: Multiple Inserts and updates

2002-12-01 Thread Ed Reed
gt;>Values (("56-56", 5), ("27-01", 1), ("15-02", 2)); >> >>I've tried it with and without the outer parens. >> >>Thanks >> >> >> >>>>>"Adolfo Bello" <[EMAIL PROTECTED]> 12/1/2002 5:42:34 AM >

Re: Multiple Inserts and updates

2002-12-01 Thread Joseph Bueno
Table1 (Product, Qty) >>Values (("56-56", 5), ("27-01", 1), ("15-02", 2)); >> >>I've tried it with and without the outer parens. >> >>Thanks >> >> >> >>>>>"Adolfo Bello" <[EMAIL PROTECT

Re: Multiple Inserts and updates - Opps!

2002-12-01 Thread Ed Reed
L PROTECTED]> 12/1/2002 5:42:34 AM >>> > > INSERT INTO your_table(fields_list) VALUES > (record_1),(record_2),...,(record_n); > > >>-Original Message- >>From: Ed Reed [mailto:[EMAIL PROTECTED]] >>Sent: Saturday, November 30, 2002 3:47 PM >&g

Re: Multiple Inserts and updates

2002-12-01 Thread Ed Reed
ot;, 1), ("15-02", 2)); > > I've tried it with and without the outer parens. > > Thanks > > >>>>"Adolfo Bello" <[EMAIL PROTECTED]> 12/1/2002 5:42:34 AM >>> > > INSERT INTO your_table(fields_list) VALUES > (record_1

Re: Multiple Inserts and updates

2002-12-01 Thread Joseph Bueno
; > INSERT INTO your_table(fields_list) VALUES > (record_1),(record_2),...,(record_n); > > >>-Original Message- >>From: Ed Reed [mailto:[EMAIL PROTECTED]] >>Sent: Saturday, November 30, 2002 3:47 PM >>To: [EMAIL PROTECTED] >>Subject: Multiple Ins

RE: Multiple Inserts and updates

2002-12-01 Thread Ed Reed
ens. Thanks >>> "Adolfo Bello" <[EMAIL PROTECTED]> 12/1/2002 5:42:34 AM >>> INSERT INTO your_table(fields_list) VALUES (record_1),(record_2),...,(record_n); > -Original Message- > From: Ed Reed [mailto:[EMAIL PROTECTED]] > Sent: Saturda

RE: Multiple Inserts and updates

2002-12-01 Thread Adolfo Bello
INSERT INTO your_table(fields_list) VALUES (record_1),(record_2),...,(record_n); > -Original Message- > From: Ed Reed [mailto:[EMAIL PROTECTED]] > Sent: Saturday, November 30, 2002 3:47 PM > To: [EMAIL PROTECTED] > Subject: Multiple Inserts and updates > > &g

Multiple Inserts and updates

2002-11-30 Thread Ed Reed
Can anyone give me an example of how to insert and/or update multiple records in the same table simultaneously? I have a table with three fields; ID, PartNum, Qty. The user enters PartNum and Qty data in an unbound grid UI. When the user hits "Save" I'd like to build a single SQL statement from th

Re: Multiple Inserts

2002-04-17 Thread Mark Dale
Hi all Thanks for your replies to my question about multiple updates in one query. I think Kittiphum Worachat is right in that I have designed it wrong. I couldn't get it to do what I wanted, so I reverted to single update queries. cheers Mark --- Summary of replies -- from Paul Wilso

Re: Multiple Inserts

2002-04-15 Thread DL Neil
Mark > Does anyone know if it's possible to insert mutilple records into 1 table > in one query? yes > Something like - > > insert into mytable (id,name,job_number,job_date) values > ('1','Mark','AA1','2002-04-15') > > insert into mytable (id,name,job_number,job_date) values > ('2','Mark','AA2'

Re: Multiple Inserts

2002-04-14 Thread Benjamin Pflugmann
Hi. Just use INSERT INTO mytable (id,name,job_number,job_date) VALUES ('1','Mark','AA1','2002-04-15'), ('2','Mark','AA2','2002-04-16'), ('3','Mark','AA3','2002-04-17') [and so on...] Also see http://www.mysql.com/doc/I/N/INSERT.html Bye, Benjamin. On Sun, Apr 14, 2002 at 11:10:22PM

Re: Multiple Inserts

2002-04-14 Thread Mark Dale
Many thanks for that. cheers Mark On Mon, 15 Apr 2002, Kittiphum Worachat wrote: > Hi. > > insert into mytable (id,name,job_number,job_date) values > ('1','Mark','AA1','2002-04-15'),('2','Mark','AA2','2002-04-16'),('3','Mark', > 'AA3','2002-04-17'), > > Kittiphum Worachat,M.T. > www.ha

Re: Multiple Inserts

2002-04-14 Thread Kittiphum Worachat
Hi. insert into mytable (id,name,job_number,job_date) values ('1','Mark','AA1','2002-04-15'),('2','Mark','AA2','2002-04-16'),('3','Mark', 'AA3','2002-04-17'), Kittiphum Worachat,M.T. www.hatyailab.com > > Does anyone know if it's possible to insert mutilple records into 1 table > in one q

Multiple Inserts

2002-04-14 Thread Mark Dale
Does anyone know if it's possible to insert mutilple records into 1 table in one query? Something like - insert into mytable (id,name,job_number,job_date) values ('1','Mark','AA1','2002-04-15') insert into mytable (id,name,job_number,job_date) values ('2','Mark','AA2','2002-04-16') insert int

RE: Multiple Inserts

2002-04-01 Thread Roger Baklund
* Egor Egorov > AC> REALFROM: "Anton Chalbaud" <[EMAIL PROTECTED]> > AC> HOUR: 2002033122 > > AC> Hi, if I need to do multiple INSERTS (I mean into different > tables) which is I think he asked about inserting int

Multiple Inserts

2002-04-01 Thread Egor Egorov
Anton, Sunday, March 31, 2002, 10:53:45 PM, you wrote: AC> REALFROM: "Anton Chalbaud" <[EMAIL PROTECTED]> AC> HOUR: 2002033122 AC> Hi, if I need to do multiple INSERTS (I mean into different tables) which is AC> the best way to manage this? Do I have to run a

Multiple Inserts

2002-03-31 Thread Anton Chalbaud
Hi, if I need to do multiple INSERTS (I mean into different tables) which is the best way to manage this? Do I have to run a different Query for each INSERT ? Or is there a faster & better way to do it. Thanks. - Be

Re: MySQL: Multiple INSERTS syntax ...

2001-07-18 Thread Allen Grace
- Original Message - From: "Philippe L. Houze" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 8:09 AM Subject: MySQL: Multiple INSERTS syntax ... > When running: INSERT INTO customers3 (firstname) select TRIM(trailing > char(10) FR

MySQL: Multiple INSERTS syntax ...

2001-07-18 Thread Philippe L. Houze
Hi, I found syntax for INSERT command in both Paul DuBois excellent book and online manual but for single insert. And it works... which for a newbie like me is thrilling. But, I am stuck for multiple inserts. I am trying to remove from a database trailing characters (ascii 10) that have shown

Re: multiple inserts

2001-03-05 Thread Rolf Hopkins
I would think an UPDATE would suit you just fine. UPDATE mytable SET price=price*1.21 WHERE ... - Original Message - From: "fano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 05, 2001 23:01 Subject: multiple inserts > Hello mysql, > >

multiple inserts

2001-03-05 Thread fano
Hello mysql, Hi, I have a table "Invoices", and i want to do something like this.. every 15 of every month, i need to open every registry of invoices.. take the price of each record and crete a new record with that price * 1.21 (I'm from argentina, and we pay some taxez :) How can i