CREATE TABLE "Customer" (
"Id" integer primary key autoincrement not null,
"Name" varchar,
"Mid" varchar,
"Year" integer,
"Semester" integer
)
+----+---------+-----+------+----------+
| Id | Name | Mid | Year | Semester |
+----+---------+-----+------+----------+
| 13 | sampath | 44 | 4 | 1 |
| 14 | vijay | 12 | 4 | 2 |
| 15 | john | 13 | 4 | 2 |
| 16 | mary | 14 | 4 | 2 |
+----+---------+-----+------+----------+
I have two questions:
How can I use the previously deleted id value to new record. In sqlite we don't have identity column so I used the autoincrement keyword. Can I use set identity_insert here?
Is there any possibility of using DBCC to reset id values?