进入数据库命令
进入数据库中后,查看打开的数据库(显示数据库的名字和路径)
查看数据库中的所有表
sqlite>
1|1|1
2||2</p>
<pre><code>
## 查询数据表中的内容 (查询部分内容) select name, sroce from +数据表名
</code></pre>
<p>1|1|1</p>
<pre><code>
## 删数据表中的内容
delete from +数据表名 where 参数=?;(删除特定内容)
</code></pre>
<p>2||2</p>
<pre><code>
## 设置数据表中的内容
update +数据表名 set 参数1=?where 参数2=?;
update +数据表名 set 参数1=?, 参数2=?where 参数3=? ;
</code></pre>
<p>sqlite> update stu set score=60 where Id=2;
sqlite> select * from stu;
2||60
删除数据表
drop table 数据表名
Original: https://blog.csdn.net/qq_36709282/article/details/119900803
Author: 神成1
Title: linux终端sqlite3命令
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/816776/
转载文章受原作者版权保护。转载请注明原作者出处!