Result-Generating and Result-Free Statements

SQL statements can be loosely divided into the following five categories:

SQL statements in the first two categories are collectively known as result-generating statements. SQL statements in the latter three categories are collectively known as result-free statements. ODBC defines the semantics of batches that include only result-generating statements. These semantics vary widely and are therefore data source – specific. For example, the SQL Server driver does not support dropping an object, and then referring to or re-creating the same object, in the same batch. Thus, the term batch as used in this manual refers only to batches of result-generating statements.