Mysql to get the main key return 0

 

1, Mysql so that the primary key return 0:
TRUNCATE table1;

2, only clearing the data table, the primary key is not owned 0:
the DELETE the FROM table1;

 

 

reference:

https://www.csdn.net/gather_2d/MtTaMgxsMjcxMy1ibG9n.html

Guess you like

Origin www.cnblogs.com/sea-stream/p/11297010.html