alter table sparksql_hive_test modify id bigint primary key auto_increment ;
然后可以调整表字段顺序:
alter table sparksql_hive_test modify mobile varchar(25) after id
alter table sparksql_hive_test modify id bigint primary key auto_increment ;
然后可以调整表字段顺序:
alter table sparksql_hive_test modify mobile varchar(25) after id