第十二节--SQLite的基本操作的应用(一)

来源:互联网 发布:数据库lower 编辑:程序博客网 时间:2024/06/05 00:35

SQLiteDatabase:

java.lang.Object   ↳android.database.sqlite.SQLiteClosable    ↳android.database.sqlite.SQLiteDatabase

原意:

Exposes methods to manage a SQLite database.

SQLiteDatabase has methods to create, delete, execute SQL commands, and perform other common database management tasks.

See the Notepad sample application in the SDK for an example of creating and managing a database.

Database names must be unique within an application, not across all applications.

译文:

展示一些方法来管理SQLite数据库
SQLiteDatabase方法来创建,删除,执行SQL命令,并执行其他常见的数据库管理任务。
查看SDK中的一个创建和管理数据库的例子
数据库名称必须是唯一的一个应用程序,而不是跨所有应用程序。


 代码示例:


 

显示效果:

 

原创粉丝点击