SQL Syntax

SQL adheres to some special arrangement of rules and rules called language structure. Here, we are giving all the fundamental SQL language structure.


  • SQL isn’t case touchy. For the most part SQL watchwords are written in capitalized.
  • SQL articulations are subject to message lines. We can put a solitary SQL explanation on one or different content lines.
  • You can perform the majority of the activity in a database with SQL explanations.
  • SQL relies upon social variable based math and tuple social analytics.


SQL articulation


SQL articulations are begun with any of the SQL orders/catchphrases like SELECT, INSERT, UPDATE, DELETE, ALTER, DROP and so forth and the announcement closes with a semicolon (;).

Case of SQL articulation:


SELECT “column_name” FROM “table_name”;

Why semicolon is utilized after SQL articulations:

Semicolon is utilized to isolate SQL articulations. It is a standard method to isolate SQL explanations in a database framework in which more than one SQL articulations are utilized in a similar call.

In this instructional exercise, we will utilize semicolon toward the finish of each SQL proclamation.

SQL Commands

These are the some significant SQL order:


  • SELECT: it extricates data from a database.
  • UPDATE: it refreshes data in database.
  • Erase: it erases data from database.
  • Make TABLE: it makes another table.
  • Change TABLE: it is utilized to alter the table.
  • DROP TABLE: it erases a table.
  • Make DATABASE: it makes another database.
  • Change DATABASE: It is utilized to alter a database.
  • Addition INTO: it embeds new data into a database.
  • Make INDEX: it is utilized to make a list (search key).
  • DROP INDEX: it erases a list.