Will the order of the record retrieved using a select query, be in the same order if retrieved infinite number of times, each time using a new connection? (to the same table, same select)
What order method is used when none is specified?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you do not define an
ORDER BYclause, there’s no implied ordering.It might happen to look like it’s being ordered by the primary key or the clustering key – but it’s not guaranteed to be that way.
So: if you need a specific order, specify an
ORDER BY.