Using 'insert' command from libpq: variables

Поиск
Список
Период
Сортировка
От Paul Mills
Тема Using 'insert' command from libpq: variables
Дата
Msg-id Pine.LNX.4.20.0005162219550.1062-100000@daystar.gis.net
обсуждение исходный текст
Ответы Re: Using 'insert' command from libpq: variables
Список 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 по дате отправления:

Предыдущее
От: SAKAIDA Masaaki
Дата:
Сообщение: Re: ECPG failed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Using 'insert' command from libpq: variables