View previous topic :: View next topic |
Author |
Message |
ravikumar_sri2001 Beginner
Joined: 06 Dec 2002 Posts: 117 Topics: 44 Location: Chennai,India
|
Posted: Mon Mar 12, 2007 7:55 am Post subject: Will Select give the result in order of primary key? |
|
|
Hi Gurus,
I have a table called "my_table" with primary key defined on it.
If i do "SELECT * from my_table", will the result table in the order of primary key ?.
Thanks,
Ravikumar. |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Mar 12, 2007 8:13 am Post subject: |
|
|
no, there is no default sequencing. If you want your returned rows in a particular sort order, you must have an ORDER BY clause. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
ravikumar_sri2001 Beginner
Joined: 06 Dec 2002 Posts: 117 Topics: 44 Location: Chennai,India
|
Posted: Mon Mar 12, 2007 11:02 pm Post subject: |
|
|
Thank you very much Dick Brenholtz.
-Ravikumar. |
|
Back to top |
|
|
|
|