DESCRIBE — 获取有关已准备好的语句或结果集的信息
DESCRIBE [ OUTPUT ]prepared_name
USING [ SQL ] DESCRIPTORdescriptor_name
DESCRIBE [ OUTPUT ]prepared_name
INTO [ SQL ] DESCRIPTORdescriptor_name
DESCRIBE [ OUTPUT ]prepared_name
INTOsqlda_name
DESCRIBE
检索已准备好的语句中包含的结果列的元数据信息,而无需实际获取行。
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;
DESCRIBE
在 SQL 标准中指定。