云数据库 GAUSSDB-DESCRIBE:示例

时间:2024-11-02 18:50:24

示例

EXEC SQL ALLOCATE DESCRIPTOR mydesc;
EXEC SQL PREPARE stmt1 FROM :sql_stmt;
EXEC SQL DESCRIBE stmt1 INTO SQL DESCRIPTOR mydesc;
EXEC SQL GET DESCRIPTOR mydesc VALUE 1 :charvar = NAME;
EXEC SQL DEALLOCATE DESCRIPTOR mydesc;
support.huaweicloud.com/centralized-devg-v3-gaussdb/gaussdb-12-0211.html