| View previous topic :: View next topic |
| Author |
Message |
deepa12 Beginner
Joined: 05 Apr 2005 Posts: 131 Topics: 64 Location: chennai
|
Posted: Fri Jan 27, 2006 5:00 am Post subject: re. retrieval order |
|
|
say i have a table
EMP . It has other fields other than EMPNO which is primary key which is emno,deptno
when i say
| Code: |
Select empno,deptno,salary, name
where deptno='a01'
|
what will be retrieval order
will it always be acdording to the PR KEY?
For what kind of Qs the data will be retrieved in PR KEY sequence _________________ deepa |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12395 Topics: 75 Location: San Jose
|
Posted: Fri Jan 27, 2006 5:43 am Post subject: |
|
|
deepa12,
The retrieval of data depends on how the table is loaded. you might be able to retrive records on primary key sequence immediately after a re-org
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Mon Jan 30, 2006 4:22 am Post subject: |
|
|
To say it short:
Without coding an ORDER BY clause, you cannot be shure (over time, whatever happens to the table) about the sequence of rows in your answer set.
regards
Christian |
|
| Back to top |
|
 |
|
|
|