Skip site navigation (1) Skip section navigation (2)

trigger problem!

From: jreniz <jreniz(at)tutopia(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: trigger problem!
Date: 2001-03-17 05:19:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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

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


pgsql-admin by date

Next:From: Marek PętlickiDate: 2001-03-17 11:54:57
Subject: Re: New PostgreSQL session monitor
Previous:From: Bruce MomjianDate: 2001-03-17 05:13:37
Subject: New PostgreSQL session monitor

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group