從access遷移數(shù)據(jù)過來后,想增加一個(gè)自增字段,卻提示無法添加,出錯(cuò)描述如下,經(jīng)過查詢,一個(gè)網(wǎng)站上給出了解決方法。
Incorrect table definition; there can be only one auto column and it must be defined as a key
先取消掉以前的主鍵,然后將自增的字段設(shè)為 個(gè)主鍵,然后在設(shè)置原來的主鍵,記得,次序很重要,自增的需要 是一個(gè)字段。
