aphexcoil has asked for the wisdom of the Perl Monks concerning the following question:
Question: When using a MySQL reserved word, you use grave's around the reserved word. In my case, I have tables that are named in a standard MySQL timestamp. How do I use the prepare statement properly to include the graves? Everything I have tried results in an error. Thank you.my $terms = $dbh->prepare(" SELECT date, term, appId, sum(impressi +ons), sum(clicks) FROM ? WHERE appId = ? GROUP BY HOUR(date), term, appId; + "); my $result = $terms->execute("`2010-07-22`", 3);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI Format Question
by jeffa (Bishop) on Aug 03, 2010 at 17:33 UTC | |
by ikegami (Patriarch) on Aug 03, 2010 at 18:50 UTC | |
|
Re: DBI Format Question
by Generoso (Prior) on Aug 03, 2010 at 21:07 UTC |