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?
Any ordering of result must be done using
ORDER BY, if you don’t use it the result will be returned in an undetermined order.