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

Re: insert con serial

From: Guillermo Villanueva <guillermovil(at)gmail(dot)com>
To: Emanuel Calvo Franco <postgres(dot)arg(at)gmail(dot)com>
Cc: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: insert con serial
Date: 2011-03-22 18:16:54
Message-ID: AANLkTi=3ftCrcbz9E3v9TXChV9G2k79Hm5GBfdP+3ht4@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
Intenté con esto como para analizar:
select * from facturacion.nomenclador  where id_nomenclador_detalle =
currval('facturacion.nomenclador_id_nomenclador_seq'::regclass) +1

Pero me dá el error:

ERROR: currval of sequence "nomenclador_id_nomenclador_seq" is not yet
defined in this session
SQL state: 55000

:-(

In response to

Responses

pgsql-es-ayuda by date

Next:From: Julio Cesar Rodriguez DominguezDate: 2011-03-22 18:35:45
Subject: Re: insert con serial
Previous:From: Emanuel Calvo FrancoDate: 2011-03-22 17:31:38
Subject: Re: insert con serial

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