I need to add a check constraint on mysql using phpmyadmin
I have a table
wp_nrOrevePerPunetore with 3 colums ID , start_date and end_date
this works fine
alter table wp_nrOrevePerPunetore add constraint conEnddtbiggerThanStartDt check(end_date < '2030-01-01' );
but this
alter table wp_nrOrevePerPunetore add constraint conEnddtbiggerThanStartDtt
check(end_date > start_date );
throws this error:
Static analysis: 1 errors were found during analysis.
A new statement was found, but no delimiter between it and the previous one. (near "check" at position 79)
What would be the right syntax for the second constraint to get executed?
ps: both start_date and end_date are datetime type