您的位置:首页 > 编程语言 > Python开发

了解如何通过Python使用SQLite数据库

2020-08-21 02:06 736 查看

SQLite is a very easy to use database engine included with Python. SQLite is open source and is a great database for smaller projects, hobby projects, or testing and development.

SQLite是Python附带的非常易于使用的数据库引擎。 SQLite是开源的,是用于小型项目,业余项目或测试和开发的强大数据库。

We've released a full video course to help you learn the basics of using SQLite3 with Python. You’ll learn how to create databases and tables, add data, sort data, create reports, pull specific data, and more. The course is taught by John Elder from Codemy.com.

我们已经发布了完整的视频课程,以帮助您学习将SQLite3与Python结合使用的基础知识。 您将学习如何创建数据库和表,添加数据,对数据进行排序,创建报告,提取特定数据等等。 该课程由Codemy.com的John Elder教授。

For this course you should already have a basic knowledge of Python programming, but you don’t need to know anything at all about databases or SQLite.

对于本课程,您应该已经具有Python编程的基本知识,但是您完全不需要了解数据库或SQLite。

In this course, you will learn:

在本课程中,您将学习:

  • what is a database

    什么是数据库
  • how to install Python

    如何安装Python
  • how to install git bash terminal

    如何安装git bash终端
  • how to use sqlite in a Python program

    如何在Python程序中使用sqlite
  • how to connect to database in Python

    如何在Python中连接数据库
  • how to create a database

    如何创建数据库
  • how to create a table

    如何建立表格
  • how to insert one record into table

    如何在表中插入一条记录
  • how to insert many records into table

    如何在表中插入许多记录
  • understanding data types

    了解数据类型
  • how to select data from table

    如何从表中选择数据
  • how to format your results

    如何格式化结果
  • how to use the where clause

    如何使用where子句
  • how to use the like clause and wildcards

    如何使用like子句和通配符
  • how to use AND and OR

    如何使用AND和OR
  • how to update records

    如何更新记录
  • how to limit and order results

    如何限制和订购结果
  • how to delete records

    如何删除记录
  • how to delete (drop) a table and backups

    如何删除(删除)表和备份
  • and more!

    和更多!

At the end of the course you will learn how to build a very basic app to help reinforce all the things from the course.

在课程结束时,您将学习如何构建一个非常基本的应用程序,以帮助强化课程中的所有内容。

You can watch the video course below or on the freeCodeCamp.org YouTube channel (1.5 hour watch).

您可以在下面或在freeCodeCamp.org YouTube频道上观看视频课程(观看1.5小时)。

翻译自: https://www.freecodecamp.org/news/using-sqlite-databases-with-python/

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐