Article View: borland.public.vdbase.data.sql
Article #1330Re: LookupSQL and Indexes
From: Joe Yuzamas
Date: Wed, 04 Feb 1998 00:00
Date: Wed, 04 Feb 1998 00:00
28 lines
1471 bytes
1471 bytes
Lane - The ORDER BY creates an internal index and sorts on that index. The SELECT statement will automatically use indexes if available, but SQL does not require them. You will get better response from indexed fields. You may also create indexes from SQL. -- Joe < jyuzamas@wrdiss1.robins.af.mil or jyuzamas@sprynet.com > Lane Coddington <Lane@VolSoft.com> wrote in article <34D7D3FE.91E89A6D@VolSoft.com>... > It doesn't seem that the SQL SELECT statement can use dBase indexes, but > then in the Help file under LookupSQL it says: > > "The SQL SELECT statement may include the usual options; in particular, > you may want the table to be ordered on the lookup field (or use a table > where such an index is available) for faster lookups." > > That makes it sound like the SQL SELECT statement can use indexes, but I > can't figure out how. Does SQL SELECT automatically use an index if it > matches the ORDER chosen? > > Thanks. > > -- > Lane Coddington > Volunteer Software > Lane@VolSoft.com >
Technical Details
Message-ID:
<01bd3178$d4ad36c0$1030f489@jyuzamas.robins.af.mil>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34D7D3FE.91E89A6D@VolSoft.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,ffda3a0d031bab69 X-Google-Attributes: gidff5a1,public From: "Joe Yuzamas" <jyuzamas@wrdiss1.robins.af.mil> Subject: Re: LookupSQL and Indexes Date: 1998/02/04 Message-ID: <01bd3178$d4ad36c0$1030f489@jyuzamas.robins.af.mil> X-Deja-AN: 321993776 References: <34D7D3FE.91E89A6D@VolSoft.com> Organization: U.S. Air Force Newsgroups: borland.public.vdbase.data.sql