历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.
SPI_gettype
SPI_gettype — return the data type name of the specified column
大纲
char * SPI_gettype(TupleDescrowdesc, intcolnumber)
描述
SPI_gettype返回该指定列的数据类型名称的副本(当你不再需要该副本后,可以使用pfree
释放它)。
参数
TupleDescrowdesc输入行描述
intcolnumber列号(从 1 开始计)
返回值
指定列的数据类型名称;出错时返回 NULL。出错时,SPI_result 会被设置为
SPI_ERROR_NOATTRIBUTE。