RE: PL/PGSQL and external (flat ASCII) files - Urgent ... :)
От | Robby Slaughter |
---|---|
Тема | RE: PL/PGSQL and external (flat ASCII) files - Urgent ... :) |
Дата | |
Msg-id | EPEHLKLEHAHLONFOKNHNCEPHDCAA.webmaster@robbyslaughter.com обсуждение исходный текст |
Ответ на | PL/PGSQL and external (flat ASCII) files - Urgent ... :) ("Chris Ruprecht" <chrup999@yahoo.com>) |
Список | pgsql-sql |
The hack and slash Perl programmer in me says--- if you only plan to do this once, (like importing data), then just write a Perl script that *generates* SQL code that does your inserts, updates, or whatever. You can then execute thsi with psql -f filename. But if you're trying to use flat files programmtically...(aren't you using a database to avoid flatfiles altogether? :-) hope that helps, robby -----Original Message----- From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Chris Ruprecht Sent: Tuesday, July 17, 2001 3:29 PM To: p-sql Subject: [SQL] PL/PGSQL and external (flat ASCII) files - Urgent ... :) Importance: High Hi all, I need to know how I can access a flat file from within a PL/PGSQL script. I have an Oracle PL/SQL book here and they refer to FOPEN(...), FCLOSE(...) but these functions don't seem to exist in PL/PGSQL.. What can I do instead? I checked the Programmer's Guide to Procedural Languages (PostGreSQL 7.1.2 and 7.2) but there is no info on it. Best regards, Chris _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl
В списке pgsql-sql по дате отправления: