mysql的表的主键重新从1开始连续

alter table dw_test drop id;//删除原来的主键值
alter table dw_test add id int not null primary key auto_increment first;//重新从1开始编号,使它连续

mysql的表删除所有数据

Delete from tablename where 1=1

mysql的表删除所有空行

Delete from tablename where tile=‘’;

 

相关文章:

  • 2022-01-04
  • 2022-01-11
  • 2021-12-09
  • 2022-02-07
  • 2021-08-19
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2021-12-13
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案