| Database, SQL and NoSQL |
Alpha Beta - Database is a collection of information that is compiled so that it can be easily accessible, managed, and updated. Database usually contains a record aggregation or data file, which contains information. Database is an abstraction of the operating system file system that makes it easy for developers to build applications that make, read, update, and delete persistent data.
The database makes structured storage can be relied upon and fast. They also give you a framework for how data must be stored and taken over -Salih must find out what to do with the data every time you create a new application.
Relational database
This stores data in a series of tables. The interconnection between tables is known as a foreign key. Each table has at least one category of data in the column, and each row has a certain data instance for the category defined in the column.
Structured query (SQL) is a user program interface and standard application for relational databases. SQLite, a database included with Python, creates one file for all data per database. Other databases such as PostgreSQL, MySQL, Oracle and Microsoft SQL Server have more sophisticated features that are useful for storing web application data.
Python standard for database interfaces is Python DB-API. DB-API provides a minimum standard for working with a database using python structure and syntax as much as possible. This fire is among the following -
- Import the fire module.
- Get a connection with a database.
- Issue SQL statements and stored procedures.
- Close the connection
SQL database
SQL means structured queries. In SQL we can produce queries to take or update the database. SQL is a standard language for a relational database system. This allows you to make a relationship between tables, can be one on one, one to many, many comparison, many people. This is an example of a relational database management system.
All relational database management systems (RDM) such as MySQL, MS Access, Oracle, Sybase, Informix, Postgres and SQL Server use SQL as their standard database language.
Using SQL Python library to connect to the database
To interact with any database through SQL Python library, we must be connected to the database. We have to install the SQL Python driver for MySQL to interact with the MySQL database from the Python application.
The MySQL database has a two -step process for creating a database:
- Make a connection to the MySQL server.
- Run a separate query to create a database.
Posting Komentar