Bluehost.com Web Hosting $6.95

Timestamp of data entry

This is a discussion on Timestamp of data entry within the MySQL Database forums, part of the Database Forums category; How do I retrieve the timestamp of the data entry? Thanks. James...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-21-2007
JH
 
Posts: n/a
Default Timestamp of data entry

How do I retrieve the timestamp of the data entry?

Thanks.
James

Reply With Quote
  #2 (permalink)  
Old 04-21-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Timestamp of data entry

JH wrote:
> How do I retrieve the timestamp of the data entry?
>
> Thanks.
> James
>


Use a timestamp column and set it every time the row is changed.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #3 (permalink)  
Old 04-21-2007
Joachim Durchholz
 
Posts: n/a
Default Re: Timestamp of data entry

Jerry Stuckle schrieb:
> JH wrote:
>> How do I retrieve the timestamp of the data entry?

>
> Use a timestamp column and set it every time the row is changed.


Actually, by default, mysql sets the first TIMESTAMP column to NOW() on
every insert or update.
(Don't rely on such behaviour when porting to a different database though.)

Regards,
Jo
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0