Database MySQL

Complete List of Commands Used in MySQL

Here are some common commands used in MySQL:

MySQL CommandsRelated Work
1.InsertInsert Command in MySQL is used to insert data into a tale
2.SelectSelect Comand in MySQL is used to retrieve the data in the database
3.DeleteDelete Command in MySQL is used to delete data from the table
4.UpdateUpdate Command in MySQL is used to update an existing datas in a table
5.Create DatabaseCreate Database Command in MySQL is used to create a new database
6.Create TableCreate Table Command in MySQL is used to create a new table
7.Create IndexCreate Index Command in MySQL is used to create an index on one or more than one columns of a table
8.Alter TableAlter Table Command in MySQL is used to modify/edit an existing table
9.Drop DatabaseDrop Database Command in MySQL is used to Completely delete a database
10.Drop TableDrop Table Command in MySQL is used to Completely delete a table
11.Drop IndexDrop Index Command in MySQL is used to Completely delete an index
12.Show DatabasesShow Databases Command in MySQL is used to display the lists of all the databases on the related server
13.Show TablesShow Tables Command in MySQL is used to display the lists of all the databases on the related server
14.GrantGrant Command in MySQL is used to provide the related privileges to the users
15.RevokeRevoke Command in MySQL is used to revoke the related privileges from the users itself
16.DescribeDescribe Command in MySQL is used to describe the structures of a table

Codeauri Brings More Programming Languages, From Front-End to Back-End Development

Let me deep dive into MySQL Commands below:

1.Insert

This insert command is used to insert data into a table.

You can allocate the values you want to insert, including all the columns to which you want to insert the related values.
For example:

INSERT INTO users (username,address, email) VALUES ('johndoe', 'newyork','[email protected]');

An Above example inserts a new row into the “users” table, with values for the “username”, “address”, “email” columns.

2.Select

3.Delete

4.Update

5.Create Database

6.Create Table

7.Create Index

8.Alter Table

9.Drop Database

10.Drop Table

11.Drop Index

12.Show Databases

13.Show Tables

14.Grant

15.Revoke

16.Describe

Codeauri is Code Learning Hub and Community for every Coder to learn Coding by navigating Structurally from Basic Programming to Front-End Development, Back-End Development to Database, and many more.

Related Posts

Complete List of Commands Used in MangoDB

Here are some common commands used in MangoDB: MongoDB Commands Related Work 1.db The Command is used to display the current database 2.use <database_name> The Command is used…

MangoDB

Learn MongoDB Get Start Learning MangoDB Queries(Database)

MySQL

Leave a Reply

Your email address will not be published. Required fields are marked *

Your Journey into Code Begins Now: Discover the Wonders of Basic Programming

X