Re: [SQL] Perl and SQL

Поиск
Список
Период
Сортировка
От Igor Sysoev
Тема Re: [SQL] Perl and SQL
Дата
Msg-id 199805150626.KAA24995@ns.nitek.ru
обсуждение исходный текст
Список pgsql-sql
>     Does anybody know an easy way to convert the 'INSERT INTO' command using
> perl to move data into SQL?  I know I can use Pg.pm, but this is really
> intended to do all the commands. I simply want to use my existing Perl
> scripts and all I need to do is the 'INSERT INTO' command to put new data
> into my table.  I do not have the Pg.pm set up on my site and I really do
> not need it to be if there is a simple way to use the 'INSERT INTO'
command
> with my existing perl script.

I think you can try:

$result = `psql base -c 'insert into ...'` ;

and of course your script must have rights to access database <base>.

with best regards,
Igor Sysoev


В списке pgsql-sql по дате отправления:

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Listing the table fields ....
Следующее
От: Thomas Good
Дата:
Сообщение: subscribe