473,387 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

timestamp conundrum

I was under the impression from the manual that if you added a field to a
table of type timestamp this would automatically be updated after each
insert/update of a new record, but all I get is 00000000.

Is there something else I should set?

Thanks.
Jul 19 '05 #1
4 2377
That should work. It only will update the "FIRST" timestamp (so if you have
more than one, check the first one).
Also it can't be type time,date, or datetime, but must be type timestamp,
preferably for max compatiblity, timestamp(14).
dp

"Bill" <no@where.com> wrote in message
news:bl**********@sparta.btinternet.com...
I was under the impression from the manual that if you added a field to a
table of type timestamp this would automatically be updated after each
insert/update of a new record, but all I get is 00000000.

Is there something else I should set?

Thanks.

Jul 19 '05 #2
That should work. It only will update the "FIRST" timestamp (so if you have
more than one, check the first one).
Also it can't be type time,date, or datetime, but must be type timestamp,
preferably for max compatiblity, timestamp(14).
dp

"Bill" <no@where.com> wrote in message
news:bl**********@sparta.btinternet.com...
I was under the impression from the manual that if you added a field to a
table of type timestamp this would automatically be updated after each
insert/update of a new record, but all I get is 00000000.

Is there something else I should set?

Thanks.

Jul 19 '05 #3

"D. Pickering" <dc*****@hps.com> wrote in message
news:x3*********************@newssvr30.news.prodig y.com...
That should work. It only will update the "FIRST" timestamp (so if you have more than one, check the first one).
Also it can't be type time,date, or datetime, but must be type timestamp,
preferably for max compatiblity, timestamp(14).
dp
Thanks for replying!

Actually, I did only have one timestamp field but as I said it alwasy set a
value of 00000, so I just ended up making it a Date field instead and
setting it manually. Might work better when I upgrade to version 4.0.15.


"Bill" <no@where.com> wrote in message
news:bl**********@sparta.btinternet.com...
I was under the impression from the manual that if you added a field to a table of type timestamp this would automatically be updated after each
insert/update of a new record, but all I get is 00000000.

Is there something else I should set?

Thanks.


Jul 19 '05 #4

"D. Pickering" <dc*****@hps.com> wrote in message
news:x3*********************@newssvr30.news.prodig y.com...
That should work. It only will update the "FIRST" timestamp (so if you have more than one, check the first one).
Also it can't be type time,date, or datetime, but must be type timestamp,
preferably for max compatiblity, timestamp(14).
dp
Thanks for replying!

Actually, I did only have one timestamp field but as I said it alwasy set a
value of 00000, so I just ended up making it a Date field instead and
setting it manually. Might work better when I upgrade to version 4.0.15.


"Bill" <no@where.com> wrote in message
news:bl**********@sparta.btinternet.com...
I was under the impression from the manual that if you added a field to a table of type timestamp this would automatically be updated after each
insert/update of a new record, but all I get is 00000000.

Is there something else I should set?

Thanks.


Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Craig Bailey | last post by:
I have several scripts that send email using PHP's mail() function. I recently noticed that the time sent displayed inside those messages is approximately one hour ahead of the actual time. (It's...
0
by: Bill | last post by:
I was under the impression from the manual that if you added a field to a table of type timestamp this would automatically be updated after each insert/update of a new record, but all I get is...
2
by: rong.guo | last post by:
Hello Group, I am having a really weird problem... Can anyone tell the difference between Query 1 and Query 2 below? Why Query 2 excludes '2/28/2005'? Many thanks! create table a...
4
by: Jim Ford | last post by:
I have a single C file with the following code: int f2() { /* Blah-blah */ } int f1() { /* Blah-blah */
4
by: Jim Owen | last post by:
I am storing all my application data in the application cache. Anytime I have a method as part of an asp.net form, I need to access the objects in the cache. The only way I can think of to do this...
2
by: Russell Smith | last post by:
Timestamps support infinity. However if appears dates do not. When timestamps are cast to dates, there is no output. Is this an acceptable option or not? Below are a number of examples...
22
by: Mal Ball | last post by:
I hope I have the right forum for this question. I have an existing Windows application which uses a SQL Server database and stored procedures. I am now developing a web application to use the same...
2
by: subnunciation | last post by:
i know, this shouldnt be a conundrum right? one just shouldnt divide by zero. but this is suddenly happening *all over* my site. after chasing the error here and there, i simplified things down to:...
7
by: JJ | last post by:
How do I set one field to have the updated timestamp, and another to have the created timestamp? I want to do this directly from code generated from DB Designer if possible?! JJ
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.