加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

sqlite3

发布时间:2020-12-13 00:20:17 所属栏目:百科 来源:网络整理
导读:1 建立数据注意事项: sqlite3.exe test.db 建立好之后,会在与sqlite3.exe同目录下生成test.db数据文件。(如果数据库中没有表,则不会在硬盘中存储test.db文件)。 2 创建表 create table tb_name(filed1,filed2); tb_name 为要创建的表名,filedx表示字段

1 建立数据注意事项:

sqlite3.exe test.db

建立好之后,会在与sqlite3.exe同目录下生成test.db数据文件。(如果数据库中没有表,则不会在硬盘中存储test.db文件)。

2 创建表

create table tb_name(filed1,filed2);

tb_name 为要创建的表名,filedx表示字段。sqlite3 不限制必须输入字段的类型。

3 添加

insert tb_name values(value1,value2);

4 删除

delete from tb_name

5支持事务处理。

begin transaction;

end transaction;

commit;

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读