I am selecting a column from a database and trying to print it to the screen. I keep getting the following error:
DBD::ODBC::st fetchrow_array failed: [Microsoft][ODBC Microsoft Access
+ Driver
ring data, right truncated on column number 1 (summary) (SQL-01004)(DB
+D: st_f
h/SQLFetch (long truncated) err=1) at uab.pl line 23.
This is the code I am using to get the data:
$dbh = DBI->connect('dbi:ODBC:StockDB') || die "Error opening DB: $DBI
+::errstr\n";
$sth = $dbh->prepare("SELECT NOTES FROM QTABLE");
$sth->execute() or die "Couldn't execute query: $DBI::errstr\n";
while (my @row = $sth ->fetchrow_array){
print "@row\n";
}
$sth->finish();
Any Suggestions?
Thanks,
Aspiring Monk