greendao重置表的自增长主键

try{
     DaoSession session=MyApplication.getInstances().getDaoSession();
     String sql = "update sqlite_sequence SET seq = 0 where name ='TableName'";//自增长ID为0
    session.getDatabase().rawQuery(strSql,null);
}catch(Exception e){
    
}
    原文作者:wasdzy111
    原文地址: https://www.jianshu.com/p/9d23b335dc7f
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞