decimal(9)类型设置成自增是否可以?目前导入Mysql的时候报错!
create table Roles
(
    roles_id             decimal(9) not null auto_increment,
    company_id           decimal(9),
    roles_name           char(250) not null,
    roles_code           char(20),
    roles_desc           char(255),
    roles_type           smallint,
    primary key (roles_id)
);
我换成long,nemeric也报错???
------解决方案--------------------
不可以,自增必须是整型。