SQL follows some unique set of rules and guidelines called syntax. Here, we are providing all the basic SQL syntax.
SQL statements are started with any of the SQL commands/keywords like SELECT, INSERT, UPDATE, DELETE, ALTER, DROP etc. and the statement ends with a semicolon (;).
Example of SQL statement:
Why semicolon is used after SQL statements:
Semicolon is used to separate SQL statements. It is a standard way to separate SQL statements in a database system in which more than one SQL statements are used in the same call.
In this tutorial, we will use semicolon at the end of each SQL statement.
These are the some important SQL command: