Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Getting precise values for TIMESTAMP(n) columns

 
   Database Help (Home) -> Ingres RSS
Next:  Time Zone Problem  
Author Message
Roy Hann

External


Since: Jul 08, 2008
Posts: 50



(Msg. 1) Posted: Tue Oct 14, 2008 5:01 am
Post subject: Getting precise values for TIMESTAMP(n) columns
Archived from groups: comp>databases>ingres (more info?)

I have been trying to find a way to get Ingres to supply a timestamp
with millisecond precision (and accuracy) to store in a TIMESTAMP(3)
column in a database procedure. So far I've come up empty-handed.
Anyone got any suggestions?

--
Roy

UK Ingres User Association Conference 2009 will be on Tuesday June 9, 2009
Go to http://www.iua.org.uk/join to get on the mailing list.

 >> Stay informed about: Getting precise values for TIMESTAMP(n) columns 
Back to top
Login to vote
Roy Hann

External


Since: Jul 08, 2008
Posts: 50



(Msg. 2) Posted: Tue Oct 14, 2008 5:25 am
Post subject: Re: Getting precise values for TIMESTAMP(n) columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Roy Hann wrote:

> I have been trying to find a way to get Ingres to supply a timestamp
> with millisecond precision (and accuracy) to store in a TIMESTAMP(3)
> column in a database procedure. So far I've come up empty-handed.
> Anyone got any suggestions?

One of my colleagues who hadn't even seen this just phoned me out of the
blue to tell me that a TIMESTAMP column WITH DEFAULT will be given the
current time when you insert a row. That's a good start, although I
will have to hold my nose if I am going to rely on a default value when
inserting.

Now, what can I do about timestamps for updates?

--
Roy

UK Ingres User Association Conference 2009 will be on Tuesday June 9, 2009
Go to http://www.iua.org.uk/join to get on the mailing list.

 >> Stay informed about: Getting precise values for TIMESTAMP(n) columns 
Back to top
Login to vote
Anthony Simpson

External


Since: Oct 14, 2008
Posts: 1



(Msg. 3) Posted: Tue Oct 14, 2008 7:41 am
Post subject: Re: [Info-Ingres] Getting precise values for TIMESTAMP(n) columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I think you want to use CURRENT_TIMESTAMP or LOCAL_TIMESTAMP they should
both include milliseconds, for more info see:

http://newsgroups.derkeiler.com/Archive/Comp/comp.databases.ingres/2008-
04/msg00017.html

This works for me.

Regards

Anthony Simpson
Luminary - An Ingres Company
Tel: +44 (0) 845 371 4090
Mob: +44 (0) 7833596587
Email: anthony.simpson.DeleteThis@luminary.co.uk

For more information on Luminary go to http://www.luminary.co.uk
Luminary Solutions Limited Registered in England No 4854134 VAT Reg No.
829 3166 13
Registered Office: Lacon House, Theobald's Road, London, WC1X 8RW

-----Original Message-----
From: info-ingres-bounces.DeleteThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of Roy
Hann
Sent: 14 October 2008 11:26
To: info-ingres.DeleteThis@kettleriverconsulting.com
Subject: Re: [Info-Ingres] Getting precise values for TIMESTAMP(n)
columns

Roy Hann wrote:

> I have been trying to find a way to get Ingres to supply a timestamp
> with millisecond precision (and accuracy) to store in a TIMESTAMP(3)
> column in a database procedure. So far I've come up empty-handed.
> Anyone got any suggestions?

One of my colleagues who hadn't even seen this just phoned me out of the
blue to tell me that a TIMESTAMP column WITH DEFAULT will be given the
current time when you insert a row. That's a good start, although I
will have to hold my nose if I am going to rely on a default value when
inserting.

Now, what can I do about timestamps for updates?

--
Roy

UK Ingres User Association Conference 2009 will be on Tuesday June 9,
2009
Go to http://www.iua.org.uk/join to get on the mailing list.


_______________________________________________
Info-Ingres mailing list
Info-Ingres.DeleteThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
 >> Stay informed about: Getting precise values for TIMESTAMP(n) columns 
Back to top
Login to vote
Roy Hann

External


Since: Jul 08, 2008
Posts: 50



(Msg. 4) Posted: Tue Oct 14, 2008 9:52 am
Post subject: Re: [Info-Ingres] Getting precise values for TIMESTAMP(n) columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Anthony Simpson wrote:

> I think you want to use CURRENT_TIMESTAMP or LOCAL_TIMESTAMP they should
> both include milliseconds, for more info see:
>
> http://newsgroups.derkeiler.com/Archive/Comp/comp.databases.ingres/2008-
> 04/msg00017.html

That's just what I needed. Thanks.

--
Roy

UK Ingres User Association Conference 2009 will be on Tuesday June 9, 2009
Go to http://www.iua.org.uk/join to get on the mailing list.
 >> Stay informed about: Getting precise values for TIMESTAMP(n) columns 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Info-Ingres] Float values in QBF - Is there some way to view float type values in QBF with accuracy greater than default 3 decimal places after the decimal point? Thanks Piotr Wisniewski

Anyone using Plone with Ingres? - I'm currently playing about with Plone and Ingres (i.e. I have created a ZODB that is stored in an Ingres database). I am curious to know who else is. Roy

Windows Server 2003 Ingres Net Problems - Gday, I am running Ingres Net (version 2.6 SP2) on a Windows Server 2003 box with ODBC Driver version 3.50.00.32 and am having some problems with stability. Essentially the problem is that I get a random Ingres ODBC error ERROR [HY000] [CA][Ingres ODBC...

ODBC error message: Unable to authenticate client's user ID - Hi list, we have two machines: 1. Suse Linux with Ingres 2.6 SP2 DBMS 2. Win 2000 Server with IngresNet (client-only) 2.5 The Win 2000 box starts a Borland-Delphi-app that connects via ODBC, unfortunately this fails. Errlog.log on the Windows machine....

Ingres with PHP - Hallo, sorry for my bad english. I need to use IIS/PHP/Ingres, but it does not work. Do you know the exactly way to use Ingres with PHP?
   Database Help (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]