MySQL timestamp only on create -


I use timestamp with PHP in MySQL 5.x to remember the event bar. During development, I had to update the table with a table which makes some changes in all the columns. The timestamp was reset to the current time.

How can I change timestamp changes only on the inclusion or not, but how can I change it? In essence, however, I think it should do this:

  Optional table 'mytable' change 'mydatefield` `mydatefield` TIMESTAMP tap DEFAULT CURRENT_TIMESTAMP  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -