Jump to content

Update a timestamp field?


realtek

Recommended Posts

As u said time stamp is the value at the point of record insertion.

 

and u can have varying length

 

TIMESTAMP(14) YYYYMMDDHHMMSS

TIMESTAMP(12) YYMMDDHHMMSS

TIMESTAMP(10) YYMMDDHHMM

TIMESTAMP(8) YYYYMMDD

TIMESTAMP(6) YYMMDD

TIMESTAMP(4) YYMM

 

 

u can use something like ( example) this

 

update test set dt=\'20030523203030\'

 

If dont give the correct format u will just see 0000000 being updated

 

So check the value u have given in time stamp!

Link to comment
https://forums.phpfreaks.com/topic/510-update-a-timestamp-field/#findComment-1698
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.