🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1048

Re: Query vs Table

#1048
From: Viatcheslav V. Vassiliev
Date: Wed, 10 Nov 2004 10:46
24 lines
1664 bytes
In this case query almost always is much faster.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Daniele Borini" <borini@infinito.it> ???????/???????? ? ???????? ?????????:
news:4191dfa3@newsgroups.borland.com...
> Hi all,
> i need to retrieve some values from a table by a certain value of the id
> field.
> SQL statement is something kinda:
> SELECT orderNo,date FROM Orders WHERE idCostumer=10
>
> i should use a Query, but i should use a table too, by specifing this
> filter: idCostumer=10.
>
> the result is the same, but, which's the faster?
>
> 10x Daniele
Technical Details
Message-ID: <4191f182$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4191dfa3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,3e210ae96ce64799
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4191dfa3@newsgroups.borland.com>
Subject: Re: Query vs Table
Date: Wed, 10 Nov 2004 13:46:19 +0300
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <4191f182$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100083586 213.234.218.42 (10 Nov 2004 02:46:26 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail