The missing ";" was a typo. My actual query looks like below:
my $query = "SELECT COLUMN3 FROM $table WHERE COLUMN1=\'$var1\' AND CO +LUMN2=\'$var2\'";
I already tried the "Single quotes" as above and it fails as well. I had to escape the single quotes else it won't interpret the Value that is stored in the variables.
Thanks for your time.
In reply to Re^2: DBD::CSV - SQL Syntax - "AND" clause is not working properly
by slayedbylucifer
in thread DBD::CSV - SQL Syntax - "AND" clause is not working properly
by slayedbylucifer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |