Basic MySQL Queries You Should Know!
MySQL is a relational database management system based on SQL
SQL(Structured Query Language) is used to make a request to retrieve data from a Database.
There are some basic queries you should know.
Show Databases
It displays information on all the existing databases on the server.
Create Database
Using the create database statement we can create a new SQL database.
SELECT Database
USE statement is used to select any existing database in the SQL schema.
DELETE Database
It is used to drop an existing database in SQL schema.
DELETE
It will delete data from a database. You can delete data from a table using DELETE
SELECT
It will fetch data from a database. It will show selected data in an existing database.
UPDATE
It is used to modify existing data in the table.
ALTER TABLE
It is used to modify existing data. In the screenshot below, I have added a new column to an existing table.
INSERT INTO
Inserts new data into a database. You can insert single or multiple data in a single query
So, these are some basic MySQL Queries you should know.
There are many more queries in MySQL which are also important for performing backend queries like — CREATE, RENAME, TRUNCATE, etc.
Thanks for giving me your precious time, If you like my content and want to show support, give a few claps and follow for more such content.