How can I avoid getting this MySQL error Incorrect column specifier for column COLUMN NAME?

前端 未结 5 1431
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 22:48

How can I avoid getting this MySQL error Incorrect column specifier for column topic_id ?

MySQL Error...

#1063 - Incorrect column spec         


        
5条回答
  •  执笔经年
    2021-02-06 23:11

    I was having the same problem, but using Long type. I changed for INT and it worked for me.

    CREATE TABLE lists (
     id INT NOT NULL AUTO_INCREMENT,
     desc varchar(30),
     owner varchar(20),
     visibility boolean,
     PRIMARY KEY (id)
     );
    

提交回复
热议问题