Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Informix > RE: FOREACH cur...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 13935 of 14862
Post > Topic >>

RE: FOREACH cursor sequence

by shahid.mehmood <shahid.mehmood@[EMAIL PROTECTED] > Apr 29, 2008 at 08:17 AM

If you have CLUSTERED INDEX (index in the ORDER that you need) on the
table then you can get rows in sequence without ORDER BY clause ...
=20

-----Original Message-----
From: informix-list-bounces@[EMAIL PROTECTED]
 On Behalf Of Jarrod Teale
Sent: Monday, April 28, 2008 08:28
To: falconsoon@[EMAIL PROTECTED]
 informix-list@[EMAIL PROTECTED]
 RE: FOREACH cursor sequence

If you want to control to order, add an ORDER BY clause to the query
that the cursor is running.
Otherwise you have no control of the order - the rows will be returned
as the database finds them.

Jarrod Teale

-----Original Message-----
From: informix-list-bounces@[EMAIL PROTECTED]
 On Behalf Of
falconsoon@[EMAIL PROTECTED]
 Monday, 28 April 2008 3:22 p.m.
To: informix-list@[EMAIL PROTECTED]
 FOREACH cursor sequence

I have a table with row 1, row 2, row 3, and etc.
If I use foreach cursor to loop through the rows, will the rows been
retrieved in sequence, i.e. follow row 1, row 2, row 3, and etc
sequence? Or it will been retrieved without follow the original
sequence, i.e. may be row 2, row 1, row 3, and etc?

Thanks for anyone who can help to clarify it.
Thanks.
_______________________________________________
Informix-list mailing list
Informix-list@[EMAIL PROTECTED]
 mailing list
Informix-list@[EMAIL PROTECTED]

 




 2 Posts in Topic:
FOREACH cursor sequence
falconsoon@[EMAIL PROTECT  2008-04-27 20:21:33 
RE: FOREACH cursor sequence
shahid.mehmood <shahid  2008-04-29 08:17:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 21:09:17 CDT 2008.