android 数据库使用
1. 使用流程
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| # 1. 获取数据库 create database if not exist db_name;
# 2. 创建表 create table if not exist tb_category( integer id auto primary key )default charset="utf8";
# 3. 查询 select * from tb_name where id=0;
# 4. 更改 update tb_name set filed="new msg" where id=1;
# 5. 删除 delete from table where id=0;
# 6. 插入 inset into tb_name (field1, ...) values(value1, ...);
|
Author:
微笑城
Permalink:
http://www.yuelin.link/2023/02/22/android/day02/
License:
Copyright (c) 2019 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?