Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql sort by date column

SELECT * FROM members ORDER BY date_of_birth DESC; -- Dates are newest at the top of the table
SELECT * FROM members ORDER BY date_of_birth; -- Dates are oldest at the top of the table
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #mysql #sort #date #column
ADD COMMENT
Topic
Name
3+3 =