I have two date columns in one table, i.e. onlineRegistrationCloseDate and onlineRegistrationFixesDate. And for second date column I want to add one day to onlineRegistrationFixesDate column's value. Like if user has entered 2017-02-01 in onlineRegistrationCloseDate then automatically the date for onlineRegistrationFixesDate will be inserted as "2017-02-02".
I tried to set Date_add(Select onlineRegistrationCloseDate , INTERVAL 1 DAY) like this default value of second column but i am getting some error, I am using workbench for it.
Please help me how I can set default value of second column on the based of first column's value.