Day 29 SQLite资料库

(一)介绍
当我们需要对资料进行大量递增、删、改、查操作时,我们就会使用到资料库,而最广泛被应用的就是SQLite,它同时支援Android及iOS。

(二)特性
1.可批次处理事物。
2.支援自动Version管理。
3.支援增、删、改、查。
4.支援Android及iOS执行。

(三)事前准备
可至官网查询所需版本。
sqflite:https://pub.dev/packages/sqflite/versions
path:https://pub.dev/packages/path/versions
https://ithelp.ithome.com.tw/upload/images/20211011/20140524V9BimuUikC.png

(四)操作(以下操作我直接以程序码范例表示)
1.开启资料库同时建立资料表(Create)
https://ithelp.ithome.com.tw/upload/images/20211011/20140524GxXvoF4j6G.png
2.插入资料(Insert)
https://ithelp.ithome.com.tw/upload/images/20211011/20140524XzGgnHrgJz.png
3.查询资料(Query)
https://ithelp.ithome.com.tw/upload/images/20211011/20140524b57i5a7tdL.png
4.修改资料(Update)
https://ithelp.ithome.com.tw/upload/images/20211011/20140524YfbYOhe157.png
5.删除资料(Delete)
https://ithelp.ithome.com.tw/upload/images/20211011/20140524L24FXAgDO6.png

今天介绍到这边,希望这些对大家有帮助,明天就是最後一天了,想不到我居然撑完了,也谢谢大家陪我走到今天!

参考资料
横跨Android及Apple的神话:用Dart语言神启Flutter大业8.2节
https://ithelp.ithome.com.tw/articles/10227611
http://tw-hkt.blogspot.com/2019/08/flutter-sqflite.html
https://pub.dev/packages/sqflite/versions
https://pub.dev/packages/path/versions
https://iter01.com/447583.html


<<:  Day 26 设定 Redux 环境

>>:  Angular Stock首页(Day26)

<Day29> 实战!!投资小白的出击!!!!

时间过好快,不知不觉的已经要迈入铁人赛的最後一天了 回顾开赛到现在,除了学习Shioaji API的...

灵异现象 - 我是你的恶梦

灵异现象 - 我是你的恶梦 Credit: 贾希大人不气馁! 灵感来源:UCCU Hacker 灵异...

[Day10] 学 Reactstrap 就离 React 更近了 ~ Grid 篇‧最终回(应该是?

前言 昨天文章有提到 Grid 其实还有东西没讲完, 所以今日文章就定调为把 Grid 讲完, 然後...

Day 7 jinja (2)

前言 今天要继续看 jinja 的使用,昨天的内容比较接近一般的变数存取、if、for 的使用,而今...

企划实现(28)

使用自定义的listview 第一步:制作自己想要的listview格式 <?xml vers...