Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3739

How to set TIMESTAMP and DATETIME in workbench (no replies)

$
0
0
Using work bench I have 2 data fields/columns that are dates

One is the date and time the record was first inserted into the table and will remain the same until the record is deleted lets call it DATE_CREATED

The second is the date and time the record was updated lets call it DATE_CREATED

Data Type for both is TIMESTAMP or should I make it DATETIME

In the workbench how should I set the default value to keep DATE_CREATED static and keep DATE_UPDATED dynamic so it changes each time the record is updated

Viewing all articles
Browse latest Browse all 3739


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>