DBD::Pg

Vladimir Makovsky xmakovsk na fi.muni.cz
Čtvrtek Únor 21 18:47:35 MET 2002


> V dokumentaci DBD::Pg se pise, ze atribut NULLABLE neni driverem
> dostupny, ale ze by melo fungovat zjisteni pres func.
>

tak bohuzel ani pres func, jmena i typ vypisuje dobre.

my @atr = $dbh->func( $tab, 'table_attributes' );
foreach my $x (@atr)
{   foreach my $column (@$x)
    {  print "$column->{NAME},$column->{NULLABLE},$column->{TYPE}";
    }
}

--v.m.



Další informace o konferenci Perl