|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: OT: Postgres, now(), and bindvarsby cees (Curate) |
| on Dec 04, 2005 at 08:26 UTC ( [id://513947]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||