VAR

Name

VAR -- define a variable

Synopsis

VAR varname IS ctype

Description

The VAR command defines a host variable. It is equivalent to an ordinary C variable definition inside a declare section.

Parameters

varname

A C variable name.

ctype

A C type specification.

Examples

EXEC SQL VAR vc IS VARCHAR[10];
EXEC SQL VAR boolvar IS bool;

Compatibility

The VAR command is a PostgreSQL extension.

copyright  ©  November 14 2019 sean dreilinger url: https://durak.org/sean/pubs/software/postgresql-9.2.0/ecpg-sql-var.html