erlug
[Top] [All Lists]

Re: Re[2]: [Erlug] Delirio

To: erlug@xxxxxxxxxxxxxx
Subject: Re: Re[2]: [Erlug] Delirio
From: Maurizio Lemmo - Tannoiser <tann@xxxxxxxxx>
Date: Tue, 21 May 2002 13:20:19 +0200
* martedì 21 maggio 2002, alle 12:55, Fabio Muzzi scrive:
> MLT> via jdbc e` facile. :)
> 
> Supponi che io non sappia niente di java e di as/400.
> 
> Cosa intendi per "facile"?

suppongo:

#!/usr/bin/perl
use DBI;
$utente="utente";
$pass="password";

$dbh =
DBI->connect("dbi:JDBC:hostname=pinco.pallino.it;port=8088;url=nomedb",
$utente, $pass);

$sql = "select * from TABELLA";
$sth = $dbh->prepare($sql);
$rows = $sth->execute();

if($rows)
{
        ($myrows) = $sth->fetchrow_array();
}

ti rimando alla docu di DBI per il resto.

-- 
          Maurizio - Tannoiser - Lemmo # STIGE Srl Servizi Informatici
                 Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
Xander: "I guess a guy's gotta' be undead to make time with you."
        --Buffy the Vampire Slayer: Prophecy Girl


<Prev in Thread] Current Thread [Next in Thread>