本地数据库ID [英] Local Database id
本文介绍了本地数据库ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的Windows手机应用程序中使用本地数据库它工作正常但是有一个小错误我面临的错误是DB正在给删除该ID后再次记录相同的id。就像我删除了DB中id为3的记录一样,
会成功删除它,但是当我插入一个新记录时,DB会给它ID号为3,然后继续记录其中的数字
Hi, I am using local database in my windows phone app it is working good but there is a minor error which I am facing the error is that DB is giving same id to records again after deleting that id. Like if I have deleted record having id 3 in DB it will delete it successfully but when I insert a new record DB will give it id number 3 and then continue with the numbers of record in it
我该怎么办?
我还尝试了id列的isDBgenerated = true属性
I have also tried isDBgenerated = true property for id column
推荐答案
请发布一些代码以及您正在使用的数据库类型。
Please post some code and what type of database you are using.
这篇关于本地数据库ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文