in reply to Escaping Apostrophe
My first suggestion is to not re-invent the wheel, see for example SQL::Abstract (Update: example).
Also, you should always use placeholders wherever possible - see Bobby Tables!
DBI provides quote and quote_identifier, but I'd consider those a last resort if the above is not applicable for whatever unlikely reason.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Escaping Apostrophe
by perl_gvenk (Initiate) on Oct 20, 2017 at 14:02 UTC | |
by AnomalousMonk (Archbishop) on Oct 20, 2017 at 16:08 UTC |