Re: Updating Tables

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Wart (nospamWart_at_epix.net)
Date: 12/07/04


Date: Tue, 7 Dec 2004 17:49:36 -0500

Shawn,
Another idea would be to use a query like "select * from foo where 1 = 0".
This will return no rows and is fast if you want to use the initial method
you outlined.
HTH,
CF
"Shawn Fessenden" <shawn#no#@testech-ldt.#spam#com> wrote in message
news:RV6sd.38511$Qv5.18758@newssvr33.news.prodigy.com...
>I have a large table in a MySQL database. To add records to this table, I
> usually do:
>
> ' Connect to db. Connection is cn.
> Set rs = new ADODB.Recordset
> rs.ActiveConnection = cn
> Call rs.Open("select * from foo")
>
> ' Update.
> Call rs.AddNew
> ' copy fields.
> Call rs.Update
> ' Close, etc.
>
> However, when "select * from foo" is executed, it takes quite a while to
> read the entire table. How can I simply append a record to a table without
> reading the entire thing?
> -SHAWN-
>
>



Relevant Pages

  • Updating Tables
    ... I have a large table in a MySQL database. ... Connection is cn. ... However, when "select * from foo" is executed, it takes quite a while to ... reading the entire thing? ...
    (microsoft.public.vb.database.ado)
  • RE: File Transfer Wizard Problem
    ... Started reading your post and thought it was mine, ... Windows SE computer right here next to the new big one. ... Tried direct cable connection and could see the ... > Thanks, Ron ...
    (microsoft.public.windowsxp.general)
  • Re: vsftpd setup
    ... > Perhaps a preamble will be helpful to those reading this post. ... > DSL link with an ISP and as there are several members contributing, ... > bandwidth connection can be purchased from the ISP. ... > bandwidth with the ISP as well as uploading any that they think may be ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Opening large files for small amounts of data
    ... If the file is opened for Append, however, the only way to move ... to the last couple of lines for reading is to read each line starting from ... It acquires a handle to the file from the operating system. ... or re-writing an entire file at the destination (re-writing from ...
    (microsoft.public.vb.general.discussion)
  • Re: Newbie Question about Schumatech DRO
    ... will rezero the reading at any point but I have had a lot of trouble with the scales losing synchronization with the readout due to the flimsy nature of the electrical connection. ... When this happens you must take out the batteries and leave them out for 1 minute, ... plastic cover of the electronics of the caliper. ...
    (rec.crafts.metalworking)