Is name a reserved word in MySQL?

后端 未结 6 1562
傲寒
傲寒 2021-01-18 12:38

Can I name a column name in my mysql tables?

6条回答
  •  执笔经年
    2021-01-18 13:13

    You should be fine calling a column 'name'. Check out http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html for more details on how to deal with reserved words.

    Wrapping column names in the (`) character ensures that even reserved words won't be misinterpreted.

提交回复
热议问题