Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Creating a TIMESTAMP column in MySQL
Re: Creating a TIMESTAMP column in MySQL [message #32216 is a reply to message #32213] Sun, 01 May 2011 18:23 Go to previous messageGo to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
I figured out myself one way on how to do it:

COLUMN_("TIMESTAMP", Time, MY_COLUMN_ID, 0, 0)


The following column results from the code above:
MY_COLUMN_ID timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP


Now, how do I get rid of the 'ON UPDATE CURRENT_TIMESTAMP' part?

Many thanks!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MySqlSession::GetTransactionLevel() implementation
Next Topic: fetch not reading into struct
Goto Forum:
  


Current Time: Mon May 13 15:59:08 CEST 2024

Total time taken to generate the page: 0.02611 seconds