If you’re using MySQL’s SHOW CREATE TABLE
statement, but you don’t want quotes to be included in the output, this is easily addressed.
By default, SHOW CREATE TABLE
(and SHOW CREATE DATABASE
) includes quotes around table and column names, etc. When I say “by default”, I mean assuming you haven’t yet changed anything to disable these quotes.
Fortunately there’s an easy way to disable these quotes. MySQL provides us with the sql_quote_show_create
system variable. This variable can be set to 1
or 0
, which enables and disables such quotes respectively.