I would like to set up a schema which will store the current date as a string fitting in a varchar column of size 10. However CURDATE() returns as a date type, is there any way I can convert this when creating a table to automatically convert this to a string?
For reference I am using MonetDB and declaring the column like below, can I cast CURDATE somehow when creating a table?
tdate varchar(10) default CURDATE() ,