Default Expressions - help

jagan007's profile image jagan007 posted 4 years ago in General Permalink

Hi All,

Im trying to add this default expression, but getting failed Expression : DATE_SUB(NOW(),INTERVAL 1 DAY)

Please find below the exisiting table structure Description

Trying to add a column with default expression -> DATE_SUB(NOW(),INTERVAL 1 DAY) Description

Am i doing any mistake or is it bug?

Thanks!

ansgar's profile image ansgar posted 4 years ago Permalink

Support for default expressions depend on the column type, and on the server version. I would look up what your server supports here in their online documentation.

jagan007's profile image jagan007 posted 4 years ago Permalink

My MYSQL version is 8.0.17

Any suggestion for me to achieve this?

Please login to leave a reply, or register at first.