• 博客园Logo
  • 会员
  • 周边
  • 捐助
  • 新闻
  • 博问
  • 闪存
  • 赞助商
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅

SQLite Expert 删除表数据并重置自动增长列

用下面的语句肯定是行不通的,语句不支持

truncate table t_Records

方法:
1.删除表数据

delete from t_Records where 1==1

2.重置自动增长列

update sqlite_sequence set seq=0 where name='t_Records' 
/*name :是表名*/

 

SQLite Expert软件网址:  http://www.sqliteexpert.com/


posted @ 2015-07-14 11:08  wjshan0808  阅读(634)  评论(0)  编辑  收藏  举报
会员力量,点亮园子希望
刷新页面返回顶部
Copyright © 2024 wjshan0808
Powered by .NET 8.0 on Kubernetes