android Sqlite 四大语法注解
来源:互联网 发布:网络职业有哪些 编辑:程序博客网 时间:2024/05/21 00:45
android Sqlite 四大语法注解
参考原文
- SQLiteDataBase对象的query()接口
- SQLiteDataBase对象的insert()接口
- SQLiteDataBase对象的update()接口
- SQLiteDataBase对象的delete()接口
SQLiteDataBase对象的query()接口
- public Cursor query (String table, String[] columns, String selection, String[] selectionArgs,String groupBy, String having,String orderBy,String limit)
示例:
ContentValues cv = new ContentValues();
String[] args = {String.valueOf("a")};
query("user", new String[] { "username","password" },"username=?", args, null,null, null, null);
SQLiteDataBase对象的insert()接口
- public long insert (String table, String nullColumnHack, ContentValues values)
示例:
ContentValues cv = new ContentValues();
cv.put("username", "a");
cv.put("password", "b");
insert("user", null, cv);
SQLiteDataBase对象的update()接口
- public int update (String table, ContentValues values, String whereClause, String[] whereArgs)
示例:
ContentValues cv = new ContentValues();
cv.put("username", "c");
cv.put("password", "d");
String[] args = {String.valueOf("a")};
update("user", cv, "username=?",args);
SQLiteDataBase对象的delete()接口
- public int delete (String table, String whereClause, String[] whereArgs)
示例:
ContentValues cv = new ContentValues();
String[] args = {String.valueOf("c")};
delete("user", "username=?", args);
0 0
- android Sqlite 四大语法注解
- SQLite数据库存储、Android四大组件
- Android四大组件-SQLite数据库操作
- Android SQLite数据库基本语法
- android sqlite 的架构和语法
- Android Sqlite 增删改查语法
- Android SQLite数据库—高级语法
- sqlite语法
- SQLite语法
- SQLite语法
- SQLite语法
- SQLite语法
- sqlite 语法
- SQLite语法
- SQLITE语法
- SQLite语法
- Sqlite语法
- SQLite 语法
- 如何成为一名优秀的PHP开发工程师
- Node.js 一目了然的RESTful
- Tor错误解决:DisableNetwork is set. Tor will not make or accept non-control network connections.
- Mscomm32.ocx未注册的问题
- 初学python学习的内容的记录
- android Sqlite 四大语法注解
- virtubox centos 不能全屏的问题
- __block 与 __weak的区别理解 补充
- 深度学习入门:Cross-dimensional Weighting for Aggregated Deep Convolutional Features
- net包
- 【转载】spring-data-jpa+hibernate 各种缓存的配置演示
- json和XML哪个更加实用
- 142011043 梁新帆 心得一
- QCommandLineParser