Re: Oracle and C++

From: <warrell_at_my-deja.com>
Date: Wed, 27 Oct 1999 08:30:40 GMT
Message-ID: <7v6d7g$hap$1_at_nnrp1.deja.com>


In article <7v4fm8$493$1_at_nnrp1.deja.com>,   slzxq_at_my-deja.com wrote:
> How can I get the nextval of a sequence in the c++ code? My C++
> application must know the nextval of each table, which is usually table
> id, before inserting new record. Is there any way for c++ code to get
> the nextval from oracle db using MFC class or whatever?

As far as I know, you would have to query the sequence for the CurrVal and simply add one to it.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Oct 27 1999 - 10:30:40 CEST

Original text of this message