pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jreniz <jreniz@tutopia.com>
To: pgsql-admin@postgresql.org
Subject: trigger problem!
Date: Sat, 17 Mar 2001 00:19:35 -0500
Message-ID: <3AB2F3E6.D9D73FF8@tutopia.com> (raw)

Hi friends!

I'm working in a trigger and I need to put the result
of a query into a variable.

That's very easy- apparently!

The query has a aggregate function like this:

select sum(field) into variable ...

and I'm sure that field and variable are int4 type.

So, when I run this trigger there is a mistake:
 ''there is no operator '=$' for types 'int4' and 'int4'
   you will either have to retype this query using an
   explicit cast, or you will have to define the operator
   using CREATE OPERATOR''

what's meaning this? and
how can I assign the result of aggregate function into a
variable?
(My system is 6.5.3)






view thread (5+ messages)  latest in thread

Message-ID: <3AB2F3E6.D9D73FF8@tutopia.com>
Permalink:  ../3AB2F3E6.D9D73FF8@tutopia.com/
Also on:    postgresql.org/message-id/3AB2F3E6.D9D73FF8@tutopia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jreniz@tutopia.com
  Subject: Re: trigger problem!
  In-Reply-To: <3AB2F3E6.D9D73FF8@tutopia.com>
  References: <3AB2F3E6.D9D73FF8@tutopia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox