Can we have the table name as “option” in MySQL?

后端 未结 8 1170
挽巷
挽巷 2020-12-19 01:41

I am very, very new to MYSQL.I tried to create a table named \"option\". My SQL Query is :

create table option(

id int not

相关标签:
8条回答
  • 2020-12-19 02:09

    option is a reserved word in MySQL. Save yourself a world of pain and use choice for your table name.

    0 讨论(0)
  • 2020-12-19 02:10

    Better you select the other tablename.Ohterwise maintaining our code will be difficult.

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