Gossamer Forum
Home : General : Databases and SQL :

Date and Time fields Questions

Quote Reply
Date and Time fields Questions
If I set a column (say Last_Login) to type=>'date' then this just records the date?

If I set this column to type=>'timestamp' then this records the date and the time each time the record is accessed, right??

I want to set this column with the current date/time only when something else is true, like with my Last_Login for when I user logs in.

I understand there is a DATETIME type used in the LSQL Links table (default 0000-00-00 00:00:00).

So I guess my question is, how do I set a column with the DATETIME field to the current DATETIME reported by the server (only when a condition is true, not automatically like timestamp)?

Pheww.. I hope that makes sense.


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: May 29, 2002, 1:26 PM
Subject Author Views Date
Thread Date and Time fields Questions Ian 12916 May 29, 2002, 1:02 PM
Thread Re: [Ian] Date and Time fields Questions
Stealth 12457 Jun 2, 2002, 2:55 PM
Thread Re: [Stealth] Date and Time fields Questions
Paul 12483 Jun 2, 2002, 3:37 PM
Thread Re: [Paul] Date and Time fields Questions
Ian 12371 Jun 2, 2002, 3:43 PM
Thread Re: [Ian] Date and Time fields Questions
Paul 12406 Jun 2, 2002, 3:52 PM
Thread Re: [Paul] Date and Time fields Questions
Ian 12366 Jun 2, 2002, 4:00 PM
Post Re: [Ian] Date and Time fields Questions
Paul 12394 Jun 2, 2002, 4:49 PM