Special Characters in MySQL Table Name

后端 未结 7 1787
一向
一向 2020-11-29 11:05

I created a table as follows:

CREATE TABLE IF NOT EXISTS \'e!\' (
`aa` int(11) unsigned NOT NULL auto_increment,
`showName` TEXT NOT NULL default \'\',
`star         


        
7条回答
  •  悲哀的现实
    2020-11-29 11:56

    You need back-ticks around the e!

    Also, your datetimes need default values that resolve to a datetime.

提交回复
热议问题