![]() |
|
"be consistent" | |
PerlMonks |
Re: OT: Postgres, now(), and bindvarsby cees (Curate) |
on Dec 04, 2005 at 13:26 UTC ( [id://513947]=note: print w/replies, xml ) | Need Help?? |
You can't put a ? inside a quoted string in your SQL statement as DBI won't see it as a placeholder, but as a simple string. I just pulled the following out of some existing code I wrote a while ago, so I know it works:
So what you need to do is add the ' minutes' part to a perl variable and pass that entire string to the placeholder.
In Section
Seekers of Perl Wisdom
|
|