my $sth = $dbh->prepare("select XMLRECORD from F_COMPANY") or die "Couldnt prepare statement: " . $dbh->errstr; $sth->execute(); # loop through the returned data while( my ($row) = $sth->fetchrow_array()){ print "@$row\n"; }