I've modified my sql. I missed out the LIKE clause.
In reply to Re^2: Perl-MySQL get column names by kiat in thread Perl-MySQL get column names by kiat