Re: Sequences using libpqxx

From: Tomasz Ostrowski <tometzky(at)batory(dot)org(dot)pl>
To: Roshni Mani <m(dot)roshni(at)teles(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Sequences using libpqxx
Date: 2008-08-21 07:32:54
Message-ID: 48AD1A26.3090606@batory.org.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2008-08-20 12:13, Roshni Mani wrote:
> Does the sequence commands like nextval().setval(),curval() exist
> using libpqxx?

You just run an ordinary query:
select nextval('sequence_name')

Regards
Tometzky
--
...although Eating Honey was a very good thing to do, there was a
moment just before you began to eat it which was better than when you
were...
Winnie the Pooh

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Tom 2008-08-21 08:22:52 Re: pg_restore fails on Windows
Previous Message Dale 2008-08-21 05:25:40 Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully