Article View: borland.public.interbase.sql
Article #11262Re: Converting DATE. TIME, and TIMESTAMP values for SQL
From: Edward Diener
Date: Sun, 01 Dec 2002 22:27
Date: Sun, 01 Dec 2002 22:27
36 lines
2353 bytes
2353 bytes
"Arno Brinkman" <bnewsgroups @ abvisie.nl> wrote in message news:3dea6f7e@newsgroups.borland.com... > Hi, > > > How does one convert: > > > > 1) A 32-bit integer date value to an acceptable SQL value for a DATE > column, > > or does a 32-bit numeric value suffice ? > > 2) A 32-bit integer time value to an acceptable SQL value for a TIME > column, > > or does a 32-bit numeric value suffice ? > > 3) A 64-bit large integer value to an acceptable SQL value for a TIMESTAMP > > column, or does the 64 bit numeric value suffice ? > > > > Essentially what are the acceptable values for inserting or updating a > DATE, > > TIME, or TIMESTAMP value in an SQL statement in Interbase ? > > I can't find any specific format's in the standard-SQL language, but as far > as i know the most db-engines supports these formats (and so does Interbase) > : > > DATE : YY-MM-DD > TIME : HH:NN:SS > TIMESTAMP : YY-MM-DD HH:NN:SS One of the problems is that sequence, at least as far as the date value, is concerned, is locale dependent. In the US the dates are MM-DD-YY. So how does one know which format to use ? I have searched for the SQL format for DATE, TIME, and TIMESTAMP for Interbase in the docs to no avail. But this seems par for the Interbase docs, which are terrible. No wonder Borland has had such a hard time selling Interbase to customers.
Technical Details
Message-ID:
<3dea8c42@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3dea6388$1@newsgroups.borland.com> <3dea6f7e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,c9629bca0d33469f X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-01 14:38:57 PST From: "Edward Diener" <eddielee@tropicsoft.com> Newsgroups: borland.public.interbase.sql References: <3dea6388$1@newsgroups.borland.com> <3dea6f7e@newsgroups.borland.com> Subject: Re: Converting DATE. TIME, and TIMESTAMP values for SQL Date: Sun, 1 Dec 2002 17:27:55 -0500 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 216.175.67.251 Message-ID: <3dea8c42@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038781506 216.175.67.251 (1 Dec 2002 14:25:06 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail