If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > store current time in mysql database as time stamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-06, 06:27
Chimp8471 Chimp8471 is offline
Registered User
 
Join Date: Mar 2003
Posts: 225
store current time in mysql database as time stamp

what to i set the field type as to record the time time of the entry into my database?

please help

thanks in advance
Reply With Quote
  #2 (permalink)  
Old 10-03-06, 08:04
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,259
setting a column to datatype timestamp records the date/time any changes were made

if you want to store solely the time a record was inserted then define a DATETIME column and set the value manually. if you are using V5 then you could use a function / stroed procedure to handle this.

alternatively you could use an audit file recording who did what where and when.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On