Thread: Sequences using libpqxx

Sequences using libpqxx

From
"Roshni Mani"
Date:

Hi all,

 

   Does the sequence commands like nextval().setval(),curval()  exist using libpqxx?

 

Thanks and regards

Roshni

Re: Sequences using libpqxx

From
Tomasz Ostrowski
Date:
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