From: ts Date: 2000-10-29T19:04:37+09:00 Subject: [ruby-talk:5938] Re: How do I use the postgres-module? >>>>> "J" == Johann Spies writes: J> The same happens when I try (as user "js" with database "js") the J> following: Here an example : aestivum% cat b.rb #!/usr/bin/ruby require 'postgres' require 'auth' begin db = PGconn.connect('', -1, '', '', $BASE, $USER, $PASS) sth = db.exec("select * from #$TABLE") print sth.fields.join(';'),"\n" sth.clear rescue print "Error #$@\n" if $! ensure db.close if db end aestivum% aestivum% b.rb nom;bin;code;station;temperature;magnesium;taille;f2_i;f252_i;mbs847_i;f4_i;f7025_i;f286_i;f331_i;f334_i;f816_i;f618_i;f888_i;commentaire aestivum% Guy Decoux