Article View: borland.public.interbase.sql
Article #299Re: trigger to get sum
From: Isaac
Date: Sun, 18 May 2008 13:05
Date: Sun, 18 May 2008 13:05
11 lines
1240 bytes
1240 bytes
Ok thanks but how I can pass the current record value to the select
parameter ?
select sum(f2) from table_a
where f1 = {current record value of table_a)
- Which is better to let the trigger do this or to create a procedure
and execute it ?
sorry but I cant find an answer in the manual
Thanks
Technical Details
Message-ID:
<483029a4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<482f63f1$1@newsgroups.borland.com> <482f7efc@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,c564685cdb1305db X-Google-Attributes: gid114a0e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 18 May 2008 16:05:18 +0300 From: Isaac <no@no.com> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.interbase.sql Subject: Re: trigger to get sum References: <482f63f1$1@newsgroups.borland.com> <482f7efc@newsgroups.borland.com> In-Reply-To: <482f7efc@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 41.234.198.204 Message-ID: <483029a4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1211115940 41.234.198.204 (18 May 2008 06:05:40 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail