Jump to content

Default value of UNIX_TIMESTAMP()


Kryptix

Recommended Posts

Use TIMESTAMP field instead and set default value to CURRENT_TIMESTAMP

Than i would prefer NOW()

Just because its shorter...

 

And NOW() is the same as FROM_UNITIME(UNIX_TIMESTAMP())

 

Except, as OP has already find out, you can't use function as a default value.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.