An SQL statement is a sequence of characters that conforms to the syntax rules for the statement and the general rules for keywords and identifiers.

 

The execution of an SQL statement triggers database actions as implied by the content of the statement. Statements can be executed one by one or as a sequence of statements, either in the main execution block or in a Compound statement block. When SQL statements are executed as a sequence, each individual statement must be terminated with a semicolon.

 

SQL statements are categorized according to type of function:

 



 



 



 



 



 



 

 


 

Prepared Statements

Statement switches