Article View: borland.public.cppbuilder.database.multi-tier
Article #1339Re: Multiple INSERT in one Query
From: Jeff Overcash (TeamB)
Date: Sun, 21 Nov 1999 00:00
Date: Sun, 21 Nov 1999 00:00
25 lines
1517 bytes
1517 bytes
"Clayton M. Arends" wrote:
>
> Hello all,
>
> I am interested in writing a query that would insert data into multiple
> records with one execute. I am currently doing the this using multiple
> exec's and updating the parameters in a loop but for performance purposes I
> wanted to see if it would be faster to execute all at once. The help for
> BDE SQL says that INSERT "Adds one or more new rows of data in a table."
>
The more part is if you are using a select statment to fill out the values to
insert. Doing it the way you are you can't write SQL that will insert the
multiple rows that way. Do it row by row like you are right now.
--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Technical Details
Message-ID:
<38389702.615D9958@onramp.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<819jse$f4e23@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,274144d6b95a47ea X-Google-Attributes: gidfcd2b,public From: "Jeff Overcash (TeamB)" <overcash@onramp.net> Subject: Re: Multiple INSERT in one Query Date: 1999/11/21 Message-ID: <38389702.615D9958@onramp.net> X-Deja-AN: 551450115 Content-Transfer-Encoding: 7bit References: <819jse$f4e23@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier