In MyISAM tables, when a table is emptied with the TRUNCATE TABLE, the counter begins at _____________

Trang Mắm

New member
In MyISAM tables, when a table is emptied with the TRUNCATE TABLE, the counter begins at _____________
A. 0
B. 1
C. -1
D. arbitrary
 
Answer: b
Explanation: In the MyISAM tables, whenever a table is truncated with the ‘TRUNCATE TABLE’ clause, the ‘AUTO_INCREMENT’ counter again gets reset. It begins with the value one and increases monotonically.
 

Tìm kiếm

Back
Top