Overview of SQL
SQL is a language for working with databases that includes many operations such as creating databases, deleting, extracting data, modifying data, etc. In this series of articles we will learn Learn basic knowledge of SQL, create tables, queries, clauses,. Remember to follow along.
What is SQL?
SQL , short for Structured Query Language , is a structured query language that allows you to access and manipulate databases to create, delete, modify, and extract data.
SQL is also the standard language for relational database systems. All database management systems (RDBMS) such as MySQL, MS Access, Oracle, Sybase, Informix, Postgres or SQL Server take SQL as the standard database language.
If you learn about Microsoft's SQL Server, you will know that in addition to SQL, this database system also uses T-SQL as a "local" language, Oracle SQL also uses PL/SQL,.
SQL has been around since 1970 when Dr. IBM's Edgar F. "Ted" Codd describes a relational model for databases. In 1974, SQL began to appear. Four years later, IBM developed Codd's ideas and created a product called System/R. In 1986, IBM developed the first prototype of a relational database, which was standardized by ANSI. The first relational database was released by Relational Software (which is now Oracle).
What can SQL do?
SQL offers many benefits, such as:
- Execute queries against the database
- Get data from database
- Insert records into the database
- Update records in the database
- Delete records from the database
- Create a new database
- Create a new table in the database
- Create stored procedures in the database
- Create views in the database
- Set permissions on tables, procedures, and views
How are SQL commands executed?
When you execute an SQL command on any relational database management system, the system decides the best way to execute that command, and the SQL engine helps you understand how the task is interpreted. any.
There are many components in this process: Query Dispatcher, Optimization Engines, Classic Query Engine, SQL Query Engine.
SQL commands
The following are some basic command groups (classified according to the nature of the command) of SQL:
DDL - Data Definition Language
CREATE
: Create new tables, table views and other objects in the database.ALTER
: Edit existing data objects, such as tables.DROP
: Delete entire tables, table views or other objects in the database.
DML - Data Manipulation Language (Language for manipulating data)
SELECT
: Extract specific records from one or more tablesINSERT
: Insert new data into the database.UPDATE
: Modify and update data in the database.DELETE
: Delete data from the database.
DCL - Data Control Language
GRANT
: Grant privileges to the userREVOKE
: Restore the permissions granted to the user
At this point, you have a brief understanding of SQL, basic SQL commands as well as the functions of those commands. In the next lesson, we will learn about RDBMS, data components in relational database systems,.
You should read it
- What to do when Skype video doesn't work?
- Learn about Krita - Free alternative to GIMP
- How to view battery life on iOS 12
- Toshiba introduces a Core i3 touchscreen laptop
- New printing solution with Google Cloud Print
- Free antivirus software is better than the paid one
- 7 ways hackers steal your identity on social networks
- How to Optimize Windows Vista
May be interested
- Instructions on how to install MySQL on Windows 11 computersdetailed instructions step by step to install mysql on windows 11. how to set up mysql server on the most complete windows 11 computer
- How to install MySQL Workbench Community Edition on Windows 10detailed instructions on how to install mysql workbench community edition on windows 10 to manage operations with mysql database management system more easily ..
- Software Review - Stellar Repair for MS SQLstellar repair for ms sql, repair corrupt sql-database components, the following article will guide you how to safely and effectively repair and restore ms sql using stellar repair for ms sql
- How to Create a Windows Azure SQL Databasethis wikihow article show you how to create a windows azure sql database. also it shows you how to connect to database from your app. log in to your windows azure management portal.
- How to Unlock SQL Server Accounthave you lost or forgotten your sql server login? are you unable to access your sql server account? if you are an individual user in the sql server, you can contact your sa (system administrator) to reset a new password for you. but if you...
- How to Connect to MySQL Using PHPif you already know some of the basics of writing php scripts, you may be ready to learn about a set of built-in php functions that allow you to connect to and manipulate a mysql database. if you do not already have a mysql server (most...