You probably want $sth->quote_identifer instead of quote.
Perl 6 - links to (nearly) everything that is Perl 6.
| [reply] [d/l] [select] |
Yep, thats it for the identifiers!!
One last thing, is there also a solution for the definition of the column ?
Because the user defines the column name and its definition (for example: VARCHAR(100) NOT NULL)
What would be the best way to process these ?
| [reply] |
From http://www.ispirer.com/doc/sqlways39/Output/SQLWays-1-038.html:
"In MySQL delimited identifier is an identifier enclosed in back ticks (`) by default. When MySQL is running in ANSI double quotes (" ) will also work to quote identifiers. Delimited identifier cannot contain ASCII(0), ASCII(255) or the quoting character. If the delimited identifier is a reserved word or contains special characters, you must always quote it with a ` (back tick). "
I have previously used square brackets for this on psql, jet, and SQL server.
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
| [reply] |
| [reply] |