I created a table with two columns(name varchar, dob datetime). I have inserted a row
insert into table values ( 'jimmy', '19970819 05:00:00');
When I print the table jimmy is in the first row. Now, I updated my table
alter table test1 add d date;
and inserted a row
insert into table values ( 'john', '19970819 05:00:00', '19950819');
Now, when I print my table, jimmy is now the second row.
After this I have added some other rows and all these rows are inserted into the table between john and jimmy serially. jimmy is in the last row now.
My question is on what basis SQL inserts rows into a table? Is there any order for insertion?