🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #640

Re: datetime

#640
From: zainal ag
Date: Mon, 27 Jul 1998 00:00
36 lines
1371 bytes
Geoff Wass wrote:
> 
> Zainal,
> 
> Does SELECT hire_date FROM EMPLOYEE work?
> 
> Does SQLEXEC( "SELECT EXTRACT( YEAR FROM hire_date) FROM EMPLOYEE" )
> work?
> 
> I am just fishing around for info that might be useful for narrowing
> down the problem.

ok, after a few testing, I found this code work:

to read from informix, I use

open database informix
set database to
select extract(hour from pptime),extract(minute from pptime),ppdate from
:informix:ptdata ;
 where ptid='123456'

and to write to informix, I use

set database to informix
update ptdata set pptime='9:45' where ptid='123456'


I have to switch "set database to infomix and set database to" to make
it work.
Is there any suggestion to make it easy.

thank

----
zag
Technical Details
Message-ID: <35BC28BB.2885@medic.ukm.my>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35B82F26.51CA@medic.ukm.my> <MPG.1022a53f15e0f7e698b00e@forums.borland.com> <35B933DB.6B88@medic.ukm.my> <35B97742.C7F2655E@ibm.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,e9971370cc8cf784
X-Google-Attributes: gidff5a1,public
From: zainal ag <zag@medic.ukm.my>
Subject: Re: datetime
Date: 1998/07/27
Message-ID: <35BC28BB.2885@medic.ukm.my>
X-Deja-AN: 375231919
Content-Transfer-Encoding: 7bit
References: <35B82F26.51CA@medic.ukm.my> <MPG.1022a53f15e0f7e698b00e@forums.borland.com> <35B933DB.6B88@medic.ukm.my> <35B97742.C7F2655E@ibm.net>
Content-Type: text/plain; charset=us-ascii
Organization: HUKM
Mime-Version: 1.0
Reply-To: zag@medic.ukm.my
Newsgroups: borland.public.vdbase.data.sql