Article View: borland.public.interbase.sql
Article #11006Insert date/time on trigger
From: Rim Ranshuijsen
Date: Sun, 22 Dec 2002 19:01
Date: Sun, 22 Dec 2002 19:01
34 lines
2014 bytes
2014 bytes
Hi there, i'm using D6 and Interbase 6 I want to insert the system time from database server when a new record is inserted, so i tried the folowing trigger: SET TERM !! ; CREATE TRIGGER DOCUMENT_INSERT_DATE FOR DOCUMENTS BEFORE INSERT AS BEGIN NEW.INSERTDATE = date(); END !! SET TERM ; !! But i seem to be getting an error on the ( SO i thought, maybe it's not a function call, remove the ( ) and the i receive an error on the ; So probably i'm not using the right functiocall or something... Anybody who can help me out here... I also seem to be having some problems with the date time. I'm used to using UNIX time format, which is a double, but interbase has own datetime... (or is that just a double). I have some other datetime pickers in my forms as well and was wondering what is the best way to implement time and date. I'm also using php and jsp on some websites to get the data available on websites aswell so i'm looking for a cross language platform based solution. Any help is more then welcome Thanks Rim
Technical Details
Message-ID:
<3e060c20$1@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-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,f09676422c57901b,start X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-22 11:09:29 PST From: "Rim Ranshuijsen" <rim@novicom.nl> Newsgroups: borland.public.interbase.sql Subject: Insert date/time on trigger Date: Sun, 22 Dec 2002 20:01:51 +0100 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 213.84.151.204 Message-ID: <3e060c20$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1040583712 213.84.151.204 (22 Dec 2002 11:01:52 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail