Article View: borland.public.vdbase.data.sql
Article #1496Re: Problem with Order Tag on SQL Tables
From: Ken Mayer
Date: Wed, 17 Dec 1997 00:00
Date: Wed, 17 Dec 1997 00:00
22 lines
1430 bytes
1430 bytes
Garth Wells wrote: > > I think you are thinking of the ORDER BY (which acts on a field, not an > index) clause that is optional on the SQL Select Statement. The > documentation says you can use the USE..ORDER BY with SQL tables. I can > easily use SELECT tablename ORDER BY fieldname, but I am trying to find a > work around for changing existing code. Suggestion: Don't use pure SQL for everything. Instead, use a combination of the SQL and the database classes. For example, you can create a QUERY and use that. This has the rowset class (automatically) attached to it, and you can use any index tag you want from there: qMyQuery = new Query() qMyQuery.sql = "select * from mytable" qMyQuery.active = true qMyQuery.rowset.indexName = "myindextag" Hope that helps. Ken
Technical Details
Message-ID:
<3497FA1D.52F4@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd0a7b$56007e50$74ffc2d0@wells> <3497111B.235C@corp.borland.com> <01bd0a81$ba0ee840$74ffc2d0@wells>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,3ddd9c9af1c9a349 X-Google-Attributes: gidff5a1,public From: Ken Mayer <kmayer@corp.borland.com> Subject: Re: Problem with Order Tag on SQL Tables Date: 1997/12/17 Message-ID: <3497FA1D.52F4@corp.borland.com> X-Deja-AN: 299050530 Content-Transfer-Encoding: 7bit References: <01bd0a7b$56007e50$74ffc2d0@wells> <3497111B.235C@corp.borland.com> <01bd0a81$ba0ee840$74ffc2d0@wells> Mime-Version: 1.0 Reply-To: kmayer@corp.borland.com Content-Type: text/plain; charset=us-ascii Organization: Borland, International Newsgroups: borland.public.vdbase.data.sql