Re: error?

From: Mario <gonzalemario(at)gmail(dot)com>
To: "Victor Lopez" <v(dot)lopez(dot)s(at)ono(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: error?
Date: 2006-12-15 19:44:24
Message-ID: 2065a6cf0612151144m779f24cbpce5edb72c7aef20@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 15/12/06, Victor Lopez <v(dot)lopez(dot)s(at)ono(dot)com> wrote:
> Así de corto es el asunto, porque no se de donde me viene el error ... alguien
> lo ve y me lo explica?
>
> db_multi_tec=# CREATE OR REPLACE FUNCTION actualizar_sesion(VARCHAR(64))
> RETURNS void AS
> db_multi_tec-# $$

BEGIN ??

> db_multi_tec$# DELETE FROM sesiones WHERE sesion = $1;
> db_multi_tec$# INSERT INTO sesiones (sesion) VALUES ($1);

END; ??

> db_multi_tec$# $$
> db_multi_tec-# LANGUAGE plpgsql
> db_multi_tec-# SECURITY DEFINER;
> ERROR: syntax error en o cerca de «DELETE» at character 78
> LINEA 3: DELETE FROM sesiones WHERE sesion = $1;
> ^
>

--
http://www.advogato.org/person/mgonzalez/

In response to

  • error? at 2006-12-15 19:14:55 from Victor Lopez

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mario 2006-12-15 19:49:14 Re: Sobre uso de memoria RAM
Previous Message Leonardo Castillo 2006-12-15 19:39:49 Sobre uso de memoria RAM