為什嗎first+col_name這種方式不能用,希望大佬解答一下
alter ?table tb2 add name char(10) not null unique key first age;?
報錯:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'age' at line 1
2020-03-16
first就是表示添加的字段在第一列,后面無需加一個字段,不然用after
2020-03-16
謝謝!