Re: Describe table

From: Sapet Frederic (fsapet_at_infobiogen.fr)
Date: 07/06/04


Date: Tue, 6 Jul 2004 18:11:18 +0200

On Tue, 6 Jul 2004 16:07:28 +0100
Tim Bunce <Tim.Bunce@pobox.com> wrote:

> I think in some cases it's better to use
>
> $sth = $dbh->column_info(...)
>
> :)
>
> Tim.
>

hi

I am using
Oracle 8.1.5
DBI 1.42

I tried to use this method like this :
$sth = $dbh->column_info( undef,'OSNP', '%%' , '%%');
but $sth is never defined when I use column_info() -or primary_key_info()- as you noticed above

when I do something like below, everything is OK.

my $type = "TABLE";
$sth = $dbh->table_info( undef,'OSNP', '%%', $type );
while (my $row = ($sth->fetchrow_arrayref)) {
everything is ok !
}

so everything is ok with $sth = $dbh->table_info(...) but I can't find how to use $sth = $dbh->column_info(...)
any ideas ?

thanks
Fred



Relevant Pages

  • Re: last insert id
    ... Ron Savage wrote: ... DBI: V 1.47 ... else # Oracle. ... $sth -> execute; ...
    (perl.dbi.users)
  • Re: last insert id
    ... DBI: V 1.47 ... sub last_insert_id ... else # Oracle. ... $sth -> execute; ...
    (perl.dbi.users)
  • Re: prepare_cached - just how much quicker should I expect?
    ... On 27-Jul-2006 Tim Bunce wrote: ... in the DBI pod. ... when run for mysql but works fine for Oracle. ... you can fix it by putting a finish in (or adding if_active arg to ...
    (perl.dbi.users)
  • Re: $sth->{NAME} doesnt work
    ... > Tim Bunce wrote: ... Undef could mean any of those and it's not ... > don't have to type these explicit checks after every DBI operation. ... That means that err & errstr ...
    (perl.dbi.users)
  • Re: ANNOUNCE: Apache-Status-DBI-v1.0.0.tar.gz
    ... Tim Bunce wrote: ... -use DBI; ... =head1 SYNOPSIS ... =head1 BUGS AND LIMITATIONS ...
    (perl.dbi.users)