statement

CREATE PROCEDURE

Defines a procedure invoked with CALL. This example inserts a row; it does not return a scalar expression. Example target: PostgreSQL 17. Use only the isolated starter dataset; setup and expected results are in the batch evidence.

Formal Syntax & Structure

sql syntaxsql
CREATE PROCEDURE name() LANGUAGE SQL AS body

Working Example

Example Snippetsql
CREATE PROCEDURE lab_add() LANGUAGE SQL AS 'INSERT INTO customers VALUES (4, ''Mina'')';
SQL Reference