Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I order a cursor

Status
Not open for further replies.

chi1

Programmer
Jan 15, 2003
3
US
Please let me know how to order a cursor in the program. Thanks.

 
if you are reffering to sorting an order then

Sele field1,field2,... from MyCursor order by MyCursor into cursor MyCursor

Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
After creating it, Create a tag or index or ...

Order it while creating it with the SELECT command.
Don
dond@csrinc.com

 
This doesn't work.

Here is how I created a cursor:
sele qacode, descr from qacode into cursor qsel

Then I tried to order it by Descr, like following:
Sele * from qsel order by descr into cursor qsel

But I get an error message saying that a table has to be created.

Thanks for your help.
 
You can't use the same alias for both. Try:

sele qacode, descr from qacode ;
into cursor qsel order by descr

Dave S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top