SQL
Last updated
Was this helpful?
Last updated
Was this helpful?
Structured Query Language is the standard language for managing and manipulating relational databases. It allows users to create, read, update, and delete data within a database through simple, structured commands.
Mastery of SQL is essential for understanding and manipulating the queries used by systems that utilize this language.
We can find that all the SQL Databases have a collection named Information Schema that provides metadata about the database itself and lets us know about the structure of the database, such as tables, columns, data types, views, and user privileges.
It also shows information about all other databases the user has access to. It can be found as information_schema and is composed of the following structure:
information_schema.tables: Tables of the database
table_catalog
table_schem
table_name
table_type
information_schema.columns: Information of every column from tables
table_schema: Database where the table is
table_name: Name of the table
column _name: Name of column from a specified table
As mentioned earlier, SQL operates by using queries as commands that enable access and execute actions within the DB context. Some of the actions that can be performed include:
Show databases and tables
Get a specific column from a query and put it in a string separated by commas
Select data
Select data from multiple tables
Insert data
Update data
Delete data