Special Characters in MySQL Table Name

后端 未结 7 1749
一向
一向 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.

    0 讨论(0)
提交回复
热议问题