in reply to Inserting values in to table with DBI
Didn't you ask the same question at CONCAT Perl or SQL?
Did you listen to the advice that was offered there?
It seems that you know very little Perl, and even less SQL.
Your questions look like you are asking while keeping your head in a cloud of smoke. If you don't have a clear vision of your problems, neither can we.
I am sorry to say it, but what you need to do is go through a good SQL tutorial, practice a bit, and then come back asking your question, if you still have one. ;-)