天天看點

資料庫删除資料及設定

delete from 表名; 删除的資料可以復原  

truncate table 表名; 删除的資料不可以復原

set auto_increment_increment=1;    控制列中的值的增量值,也就是步長

set auto_increment_offset=1;     确定AUTO_INCREMENT列值的起點,也就是初始值

show variables like 'auto_inc%';    檢視變量auto_increment_increment與auto_increment_offset