🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.perl
4 messages
4 total messages Started by Filip Byrski Sun, 07 Dec 1997 22:26
Dokumentacja i przyklady do postgresql-perl5
#763
Author: Filip Byrski
Date: Sun, 07 Dec 1997 22:26
7 lines
771 bytes
Jezeli ktos ma lub zna jakis adres to prosze o maila

Dzieki

----
Filip Byrski
byry@gliwice.pl
Re: Dokumentacja i przyklady do postgresql-perl5
#764
Author: Piotr Piatkowski
Date: Mon, 08 Dec 1997 13:07
9 lines
985 bytes
Filip Byrski <byry@o7.mak.polsl.gliwice.pl> wrote:
: Jezeli ktos ma lub zna jakis adres to prosze o maila

perldoc pg

(chyba się ostatnio strasznie monotonny robię :-) )

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Re: Dokumentacja i przyklady do postgresql-perl5
#765
Author: Filip Byrski
Date: Mon, 08 Dec 1997 15:49
15 lines
1248 bytes
Piotr Piatkowski (kompas@galaxy.uci.agh.edu.pl) wrote:
: Filip Byrski <byry@o7.mak.polsl.gliwice.pl> wrote:
: : Jezeli ktos ma lub zna jakis adres to prosze o maila
: 
: perldoc pg

Wlasciwie to chodzilo mi o jakies dodatkowe przyklady:

z man-a:
For examples of how to use this module, look at the file test.pl. 
For further examples look at the Libpq applications in
 ../src/test/examples and ../src/test/regress.
----
Filip Byrski
byry@gliwice.pl
Re: Dokumentacja i przyklady do postgresql-perl5
#766
Author: Piotr Piatkowski
Date: Wed, 10 Dec 1997 16:52
34 lines
1915 bytes
Filip Byrski <byry@o7.mak.polsl.gliwice.pl> wrote:
: Piotr Piatkowski (kompas@galaxy.uci.agh.edu.pl) wrote:
: : Filip Byrski <byry@o7.mak.polsl.gliwice.pl> wrote:
: : : Jezeli ktos ma lub zna jakis adres to prosze o maila
: : 
: : perldoc pg

: Wlasciwie to chodzilo mi o jakies dodatkowe przyklady:

: z man-a:
: For examples of how to use this module, look at the file test.pl. 
: For further examples look at the Libpq applications in
:  ../src/test/examples and ../src/test/regress.

Ale ta biblioteka jest prosta jak budowa cepa... Zwykle używa się 
tego tak:

use Pg;

my $sql = new Pg::connectdb("dbname = zzz");
die "Postgress: " . $sql->errorMessage 
  if $sql->status != PGRES_CONNECTION_OK;

my $result = $sql->exec( "SELECT x, txt FROM test WHERE x > 5");

for my $i ( 0..$result->ntuples-1) {
  print $result->getvalues( $i, 0 ) . " = " . $result->getvalues( $i, 1 );
}

I w zasadzie do 90% zastosowań te funkcje wystarczą. Chyba że masz 
jakieś specjalne zapotrzebowania?

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads