An operator is any text that the database engine recognizes as a valid command. Starting with SQL-92 :
An SQL statement is a string of characters that conforms to the format and syntax rules specified in this international standard.
A query is an operator that returns a set of records (possibly empty).
How can I call a piece of SQL code made by more than one statement, where the statements are separated by a semicolon (;)? Who has already answered, can edit his answer. Many thanks!
A series of SQL sent to the server immediately is called a package.
Not all SQL engines required statements in a batch to be separated by a semicolon. SQL Server , for example, typically does not execute or break contextual statements. The CTE expression starting with WITH is a notable exception.
Quassnoi
source share