in reply to Perl and Mysql!

merlyn has answered your question but I wanted to add that @columns = $db->column; can't work since columns are attributed to tables not the whole database.