mysql的表的主鍵重新從1開始連續


 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=‘’;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM