in reply to variables inside SQL statements
my $sql = 'INSERT INTO table ( path ) VALUES (:1)'; # Compile sql my $sth = $dbh->prepare($sql) or die $dbh->errstr; # Bind path to :1 $sth->execute('/path/to/this') or die $dbh->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Answer: variables inside SQL statements
by merlyn (Sage) on Oct 11, 2000 at 03:44 UTC | |
by indigo (Scribe) on Oct 12, 2000 at 22:29 UTC |