in reply to Field Size using FreeTDS and SQL7
#!/usr/bin/perl -w use DBI; use Data::Dumper; my $dbh = DBI->connect( 'dbi:Sybase:server=name', 'user', 'pass' ); $dbh->do( "use database" ); my $sql = "select * from alertquerystring order by alert_id"; my $sth = $dbh->prepare( $sql ); $sth->execute; print "The fields returned are of type: ", Dumper( $sth->{TYPE} ); print "The fields have the following precision ", Dumper( $sth->{PRECI +SION} ); $sth->finish; $dbh->disconnect;
-derby
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Field Size using FreeTDS and SQL7
by markhoy (Novice) on Mar 04, 2003 at 16:08 UTC |