Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 4654 invoked from network); 7 Jun 2010 20:02:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 20:02:54 -0000 Received: (qmail 52763 invoked by uid 500); 7 Jun 2010 20:02:54 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 52725 invoked by uid 500); 7 Jun 2010 20:02:54 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 52717 invoked by uid 99); 7 Jun 2010 20:02:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 20:02:54 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 20:02:47 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OLiWg-0004s9-KA for derby-user@db.apache.org; Mon, 07 Jun 2010 13:02:26 -0700 Message-ID: <28810054.post@talk.nabble.com> Date: Mon, 7 Jun 2010 13:02:26 -0700 (PDT) From: pb2208 To: derby-user@db.apache.org Subject: Re: Help with Triggers In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pete.beatty@gmail.com References: <28805126.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I understand I can use the generated column. The real problem is the second scenario where a number must be assigned to one of several range values. Can I use a trigger to call a function in my application and how does the result of the function get back into the record that caused the trigger? Dag H. Wanvik wrote: > > You could use Derby's generated column for this: > > http://db.apache.org/derby/docs/10.6/ref/rrefsqljgenerationclause.html#rrefsqljgenerationclause > > Dag > > ----- Pete Beatty -- View this message in context: http://old.nabble.com/Help-with-Triggers-tp28805126p28810054.html Sent from the Apache Derby Users mailing list archive at Nabble.com.