pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedUsing 'insert' command from libpq: variables
2+ messages / 2 participants
[nested] [flat]
* Using 'insert' command from libpq: variables
@ 2000-05-17 02:31 Paul Mills <cybrinjn@gis.net>
0 siblings, 1 reply; 2+ messages in thread
From: Paul Mills @ 2000-05-17 02:31 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Using 'insert' command from libpq: variables
@ 2000-05-17 05:07 Tom Lane <tgl@sss.pgh.pa.us>
parent: Paul Mills <cybrinjn@gis.net>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2000-05-17 05:07 UTC (permalink / raw)
To: Paul Mills <cybrinjn@gis.net>; +Cc: pgsql-interfaces
Paul Mills <cybrinjn@gis.net> writes:
> 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.
libpq doesn't do that ... I think ecpg might be what you are
looking for.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-05-17 05:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-17 02:31 Using 'insert' command from libpq: variables Paul Mills <cybrinjn@gis.net>
2000-05-17 05:07 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox