Does the argument for the prepare method matter or does the query just need keywords e.g., select as well as the table name and condition?
The example below is from this site: http://www.tutorialspoint.com/perl/perl_database_access.htm
my $sth = $dbh->prepare("SELECT FIRST_NAME, LAST_NAME
FROM TEST_TABLE
WHERE AGE > 20");
Thanks!