SPI_getbinval

Name

SPI_getbinval -- ���������ֶεĶ�����ֵ

Synopsis

Datum SPI_getbinval(HeapTuple row, TupleDesc rowdesc, int colnumber, bool * isnull)

����

SPI_getbinval �����ݵ��ڲ���ʽ�������� Datum�����������ֶε���ֵ��

�����������Ϊ���ݷ����µĿռ䡣 ����Ǵ������ã���ô����ֵ����ָ�򴫵ݵ��е�ָ�롣

����

HeapTuple row

�����Ҫ������

TupleDesc rowdesc

����������

int rownumber

�ֶα�ţ��� 1 ��ʼ�ǣ�

bool * isnull

�ֶ����ֵ�ı�־

����ֵ

���ظ��ֶεĶ�����ֵ������ֶ�Ϊ�գ���ô isnull ָ��ı�������Ϊ�棬����Ϊ�١�

����ʱ��SPI_result ����Ϊ SPI_ERROR_NOATTRIBUTE��