H2 Database - Call

H2 Database - Call

CALL is an SQL command that belongs to the H2 database server. This command is used to evaluate a simple expression. Returns the result of the given expression in a single column field. When it returns an array of results, then each element in the array is displayed as a column value.


Following is the general syntax of the CALL command.

CALL expression;

We can use an arithmetic expression in this syntax.


Let's take an example and execute the arithmetic expression (15 * 25) using the call command.

CALL 15*25; 

The above command produces the following output.