qball has asked for the wisdom of the Perl Monks concerning the following question:
qball~"I have node idea?!"$sql = <<END_SQL; select comp_name from company where comp_name = '$hash{$comp_id}' END_SQL $query = &execsql($sql); sub execsql { my ($sql); ($sql) = @_; my $sth = $dbh->prepare($sql) || &error('prep_sql', $0); $sth->execute || &error('sql', $0); $dbh->commit; return $sth; print "SQL: $sql\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI Placeholders
by knobunc (Pilgrim) on Apr 10, 2001 at 01:28 UTC | |
|
Re: DBI Placeholders
by astanley (Beadle) on Apr 10, 2001 at 01:04 UTC | |
by qball (Beadle) on Apr 10, 2001 at 01:13 UTC | |
by astanley (Beadle) on Apr 10, 2001 at 01:16 UTC | |
by astanley (Beadle) on Apr 10, 2001 at 01:07 UTC | |
by knobunc (Pilgrim) on Apr 10, 2001 at 01:14 UTC | |
by voyager (Friar) on Apr 10, 2001 at 05:21 UTC | |
|
Re: DBI Placeholders
by runrig (Abbot) on Apr 10, 2001 at 02:00 UTC | |
|
Re: DBI Placeholders
by geektron (Curate) on Apr 10, 2001 at 03:31 UTC | |
by voyager (Friar) on Apr 10, 2001 at 05:23 UTC | |
by geektron (Curate) on Apr 10, 2001 at 05:44 UTC | |
|
Re: DBI Placeholders
by qball (Beadle) on Apr 10, 2001 at 01:36 UTC | |
by astanley (Beadle) on Apr 10, 2001 at 01:42 UTC |