For the complete documentation index, see llms.txt. This page is also available as Markdown.

VAR

VAR

VAR — 定義變數

語法


VAR varname IS ctype

說明

VAR 命令將新的 C 資料型別指派給主機變數。主機變數必須事先在宣告區段中宣告。

參數

varname

C 變數名稱。

ctype

C 型別規格。

範例


Exec sql begin declare section;
short a;
exec sql end declare section;
EXEC SQL VAR a IS int;

相容性

VAR 命令是 PostgreSQL 擴充功能。


原文:PostgreSQL 15.19 Documentation

Last updated

Was this helpful?