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

后端 未结 8 1210
挽巷
挽巷 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 01:44

    If you want to have a table name Option, you should be able to, just remember that whenever you use the table in a query, you will have to encase it in ` symbols. Like this.

    `option`
    

    The ` key on the top left of your keyboard, with the tilde.

提交回复
热议问题