in reply to Re: DBD::CSV - SQL Syntax - "AND" clause is not working properly
in thread DBD::CSV - SQL Syntax - "AND" clause is not working properly
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD::CSV - SQL Syntax - "AND" clause is not working properly
by marto (Cardinal) on Aug 28, 2012 at 11:31 UTC | |
by slayedbylucifer (Scribe) on Aug 28, 2012 at 11:41 UTC | |
by marto (Cardinal) on Aug 28, 2012 at 11:47 UTC |