Welcome Guest, Not a member yet? Register   Sign In
Working with CURRENT_TIMESTAMP
#15

[eluser]codemonkey[/eluser]
Yacman, I see what you are saying. I didn't think of it like that. Using the profiler helps with this too since I can copy the query in mysql and see what that returns. So I have the tools to play and test.

I really was just unsure on how to use the information in the column. How to format the query the correct way.

Quote:Correct me if I’m wrong (really late here), but isn’t

The data type is timestamp, default is CURRENT_TIMESTAMP

mean that any time you update a row for a user their “date_created” field will be updated to a new timestamp… this field/column should really be a “date_time”, and create a new column called “last_update” with a timestamp datatype….

Yes and no, I think it would depend on how the data is being inserted. For this table, each new entry is a new row with a new time stamp.


Messages In This Thread
Working with CURRENT_TIMESTAMP - by El Forum - 09-11-2012, 10:14 AM
Working with CURRENT_TIMESTAMP - by El Forum - 09-11-2012, 11:55 AM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 01:15 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 01:31 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 01:59 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:02 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:08 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:09 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:12 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:18 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 04:24 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 04:30 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 05:34 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-13-2012, 03:58 AM
Working with CURRENT_TIMESTAMP - by El Forum - 09-13-2012, 06:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB