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: (view raw, whole thread or download thread mbox)
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


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-2017 The PostgreSQL Global Development Group