Skip to main content

Auto-Increment ID columns and table truncation

  • September 21, 2016
  • 1 reply
  • 9 views

adamfox

Do AUTO-INCREMENT ID columns reset when a table is truncated?  Our table will be trucated regularly but we would like every row to have a unique identifier

1 reply

K__
Forum|alt.badge.img
  • Participating Frequently
  • September 29, 2016

No. It does not. You can however, reset the sequence by altering it. alter sequence restart with 1.