Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting to datetime format

Status
Not open for further replies.

anjin

Programmer
Aug 15, 1999
4
US
I have MySQL 3.23 db with columns in which unix timestamp is stored. I want to convert these columns to datetime format (for human readability reasons).

How do I write the update call?

startstamp is the column with the UNIX timestamp
I made an extra column startdtg to hold the result, and then can delete the startstamp column when done.

I tried (and may be way off since it doesn't work).
Update Buyers set startdtg=FROM_UNIXSTAMP(startstamp)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top