select records from table in the order in which i inserted

Posted by echo on Stack Overflow See other posts from Stack Overflow or by echo
Published on 2010-04-20T10:06:49Z Indexed on 2010/04/20 10:13 UTC
Read the original article Hit count: 161

Filed under:
|

consider a tale is as follows,

EmployeeId | Name | Phone_Number

Now, i insert 10 records... When i query them back, select * from myTable they are not selected in the order i inserted. I can obviously keep an autoincrement index and ORDER BY index. But i dont want to alter the table. How can i do this without altering the table?

© Stack Overflow or respective owner

Related posts about sql

Related posts about order-by