I have a MySQL table with 3 columns for simplicity sake:
Datename |Date |Name
-------------+--------+-----
30/06/15test |30/06/15|test
30/06/15other|30/06/15|other
Note: Column Datename
is unique
I would like all new data to be inserted into the table based on its value.
Example:
- If the
Date
is29/06/15
, it would be inserted at bottom of table. - If the
Date
is01/07/15
, it would be inserted at the top of the table
Or preferably sorted by Datename
column so it will sort by date then name.
Is this easily achievable, or do I need to just create a page that SELECT
and ORDER BY
?