Link to home
Start Free TrialLog in
Avatar of dinko1
dinko1

asked on

truncate in sqlite

how can I truncate a table in sqlite? I tried DELETE FROM table; but it doesnt reset the auto incremental ID. any idea?
Avatar of 8ubterfug3
8ubterfug3

The following resets the ID in SQL. Not positive about SQLLite. You could do

DELETE FROM tablename
DBCC CHECKIDENT('tablename', RESEED,0)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of dinko1
dinko1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dinko1

ASKER

i fiound solution on my own