BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to set index

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
stan
Guest





PostPosted: Fri Oct 13, 2006 8:11 am    Post subject: how to set index Reply with quote



how to set the index fields in a ADOQuery?

Thx.
Back to top
Mick
Guest





PostPosted: Fri Oct 13, 2006 1:26 pm    Post subject: Re: how to set index Reply with quote



In the sql statement itself try adding "order by (fieldname for index)" to
the end of the statement and the query will return its results set by any
field name you specify in the (fieldname for index).

You can choose to order the list in reverse by adding the ASC or DESC clause
to the order by.

example sql statement

select * from products
order by productname DESC



"stan" <stan (AT) yahoo (DOT) com> wrote in message
news:452f44c0$1 (AT) newsgroups (DOT) borland.com...
Quote:

how to set the index fields in a ADOQuery?

Thx.
Back to top
Bill Todd
Guest





PostPosted: Fri Oct 13, 2006 7:10 pm    Post subject: Re: how to set index Reply with quote



stan wrote:

Quote:

how to set the index fields in a ADOQuery?

Thx.

What do you want to accomplish by setting index fields?

--
Bill Todd (TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.