I have an SQL table:
date
************************
| id | date format |
************************
| 1 | 2013-02-10 |
| 2 | 02-02-2013 |
| 3 | 20130202 |
************************
I want to store the diff (date format) in the date table, checking with the following pattern against the table date:
/^\d{2}-\d{2}-\d{4}$/
How can I check this pattern against the date format field in the date table?
REGEXPin mysql