pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jreniz <jreniz@tutopia.com>
To: pgsql-hackers@postgresql.org.pgsql-admin
Subject: Trigger problem
Date: Sat, 17 Mar 2001 00:22:44 -0500
Message-ID: <3AB2F4A4.41255255@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 (10+ messages)  latest in thread

Message-ID: <3AB2F4A4.41255255@tutopia.com>
Permalink:  ../3AB2F4A4.41255255@tutopia.com/
Also on:    postgresql.org/message-id/3AB2F4A4.41255255@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jreniz@tutopia.com, pgsql-hackers@postgresql.org.pgsql-admin
  Subject: Re: Trigger problem
  In-Reply-To: <3AB2F4A4.41255255@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