in reply to Inserting Apostrophes into SQL
Another, less elegant IMHO, option would be to use $query = sprintf "insert into da_table values (%s)", $dbh->quote("kjasdfkj'asdflkjasef'sadfhasdfsadf'asdfhasfd'");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inserting Apostrophes into SQL
by chromatic (Archbishop) on Nov 16, 2011 at 22:54 UTC | |
by jfroebe (Parson) on Nov 18, 2011 at 16:21 UTC | |
by chromatic (Archbishop) on Nov 18, 2011 at 19:32 UTC | |
by runrig (Abbot) on Nov 18, 2011 at 20:14 UTC | |
by mpeppler (Vicar) on Nov 24, 2011 at 16:38 UTC | |
by runrig (Abbot) on Nov 24, 2011 at 18:06 UTC | |
Re^2: Inserting Apostrophes into SQL
by ikegami (Patriarch) on Nov 16, 2011 at 22:15 UTC |
In Section
Seekers of Perl Wisdom