Merlin83 has asked for the wisdom of the Perl Monks concerning the following question:
$sth->prepare('INSERT INTO tablename SET value=?'); $sth->execute('hello.world');
It's nothing to with connecting, disconnecting, error handling and stuff, I'm more than happy with those, it's beacuse, in SQL, 'hello.world' means 'the value of the hello column in the world table'.
If I quote it, like $sth->execute("'hello.world'"); I end up with the quoted value (including quotes) in the database.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI dots
by chromatic (Archbishop) on Oct 23, 2000 at 20:02 UTC | |
|
Re: DBI dots
by agoth (Chaplain) on Oct 23, 2000 at 20:19 UTC | |
by Merlin83 (Novice) on Oct 23, 2000 at 20:36 UTC | |
|
Re: DBI dots
by jptxs (Curate) on Oct 23, 2000 at 20:29 UTC | |
by merlyn (Sage) on Oct 23, 2000 at 20:32 UTC | |
by jptxs (Curate) on Oct 23, 2000 at 20:38 UTC | |
by lachoy (Parson) on Oct 23, 2000 at 21:00 UTC | |
by merlyn (Sage) on Oct 23, 2000 at 21:05 UTC | |
|