fetch auto-increment - Mailing list pgsql-odbc

From Stefan Allers
Subject fetch auto-increment
Date
Msg-id 13336.1032119970@www61.gmx.net
Whole thread Raw
List pgsql-odbc
I want to insert a row in the following table:

CREATE TABLE PATIENT (PATIN serial,PATN varchar(64) NULL);

I want to insert a patient name in the patient table with s.th. like:

insert into patient(patn) values('Doe,John')

Is there a simple way to fetch the datbase generated patin value
without doing a new database query (select patin from patient where ...)
in odbc?


--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


pgsql-odbc by date:

Previous
From: "robin"
Date:
Subject: how to write odbc sql in visual c++6.0
Next
From: Michael Meskes
Date:
Subject: Re: [HACKERS] ODBC problem/question