Using 'insert' command from libpq: variables - Mailing list pgsql-interfaces

From Paul Mills
Subject Using 'insert' command from libpq: variables
Date
Msg-id Pine.LNX.4.20.0005162219550.1062-100000@daystar.gis.net
Whole thread Raw
Responses Re: Using 'insert' command from libpq: variables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Search as I may through the documentation, I have seen no
examples of how to use C languange variables as arguments of the
SQL 'insert' command in libpq.  All examples show explicit
values being inserted.  I want to have a program get user input
and plsce it into variables where the values can be verified
before being inserted.  How do I do this? i.e. can I just say,
'insert into <table> values ( var1, var2 var3 ...)'

Paul



pgsql-interfaces by date:

Previous
From: SAKAIDA Masaaki
Date:
Subject: Re: ECPG failed
Next
From: Tom Lane
Date:
Subject: Re: Using 'insert' command from libpq: variables