you wan to tell SQL the value contained in the perl "$tim" variable, so you require perl's interpolation for THAT variable, so , use double-quotes.
Wrong. Most SQL engines require single quotes for values, and double quotes for otherwise illegal identifiers.
But don't use single-quotes, either. Use placeholders and only placeholders for any value passed to the database. Forget that quote exists at all. That method should be restricted to DBDs.
Use quote_identifier when you need to pass variable identifiers (most times, names of database objects like tables, views, columns, triggers, sequences, procedures) to the database.
Update: Sorry, I wrote nonsense.
Alexander
In reply to Re^4: SQL Query error while executing in perl. Is it possible to execute these Scripts??
by afoken
in thread SQL Query error while executing in perl. Is it possible to execute these Scripts??
by Sachin_dada
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |