1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key

1、错误描述

1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key_第1张图片


2、错误原因

建表时id,勾选自动递增,不是null,但是没有将其设置成为主键


3、解决办法

将表中的id定义成主键

1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key_第2张图片

你可能感兴趣的:(1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key)