I don't know whether it is already answered. I hadn't got any answers.In Mysql tables, the rows will be arranged in the order of primary key. For example
+----+--------+ | id | name | +----+--------+ | 1 | john | | 2 | Bryan | | 3 | Princy | | 5 | Danny | +----+--------+
If I insert anothe row insert into demo_table values(4,"Michael")
.The table will be like
+----+---------+ | id | name | +----+---------+ | 1 | john | | 2 | Bryan | | 3 | Princy | | 4 | Michael | | 5 | Danny | +----+---------+
But I need the table to be like
+----+---------+
| id | name |
+----+---------+
| 1 | john |
| 2 | Bryan |
| 3 | Prince |
| 5 | Danny |
| 4 | Michael |
+----+---------+
I want the row to be concatenated to the table i.e., The rows of the table should be in the order of insertion.Can anybody suggest me the query to get it.Thank you for any answer in advance.