- 博客(3)
- 资源 (10)
- 收藏
- 关注
转载 sqlite 如何限制某个表中的数据总数
1、定期执行:DELETE FROM table where _id NOT IN (SELECT _id from table ORDER BY insertion_date DESC LIMIT 50)2、或者建立一个trigger:CREATE TRIGGER delete_till_50 INSERT ON _table WHEN (select count
2014-02-28 15:11:09 6866
转载 Sqlite 学习笔记(一)
SQLite清空表并将自增列归零SQL标准中有TRUNCATE TABLE语句,用来清空表的所有内容。但SQLite不支持这个语句。在SQLite中直接使用 DELETE FROM TableName 就可以了。对于大多数DBMS来说,用DELETE不如用TRUNCATE 速度快,因为TRUNCATE 不用访问整个表,不用记录数据的变动。SQLite虽然不支持TRUNCATE,但它对DE
2014-02-28 10:49:51 866
翻译 《The Custom Permission Problem》部分译文
自定义用户权限问题从一开始Android便提供了系统权限(由原生框架定义)和用户自定义权限(由应用定义).不幸的是,自定义权限有一些“无证的局限性”使得它们存在内在的风险.特别地,自定义权限可能被任何人,任何时间,被定义,而且“先定义的权限为王”(原文:“first one in wins”),这些可能引发一些意外的行为.在这里,我们将介绍一些场景并展示一些可能
2014-02-14 12:30:46 774
Android-Orm-sqlite-example
2013-08-06
photoup-source-2.0.1-master
2013-07-22
photoup-source-2.0.1
2013-07-22
android-support-revision-13
2013-07-22
android.support-revision-11
2013-07-22
google-http-java-client-1.13.1-beta
2013-01-29
SlidingMenu源码及例子
2012-12-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人