Jump to content

[SOLVED] DATETIME and NOW()


xProteuSx

Recommended Posts

When I create a table in MySQL, how do I go about creating a date/time value, that is updated when 'x' event occurrs.  Initially, I want the value to show the date/time value given by the now() function:

 

CREATE TABLE whatever

(lastvisit DATETIME 'now()')

 

????

Link to comment
https://forums.phpfreaks.com/topic/36592-solved-datetime-and-now/
Share on other sites

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.