Article View: borland.public.interbase.sql
Article #11260Re: Converting DATE. TIME, and TIMESTAMP values for SQL
From: Arno Brinkman
Date: Sun, 01 Dec 2002 20:27
Date: Sun, 01 Dec 2002 20:27
27 lines
1866 bytes
1866 bytes
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 Regards, Arno
Technical Details
Message-ID:
<3dea6f7e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3dea6388$1@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 12:39:07 PST From: "Arno Brinkman" <bnewsgroups @ abvisie.nl> Newsgroups: borland.public.interbase.sql References: <3dea6388$1@newsgroups.borland.com> Subject: Re: Converting DATE. TIME, and TIMESTAMP values for SQL Date: Sun, 1 Dec 2002 21:27:25 +0100 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 213.116.154.66 Message-ID: <3dea6f7e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038774142 213.116.154.66 (1 Dec 2002 12:22:22 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail