Name
SPI_fnumber --
Finds the attribute number for specified attribute
指定属性の属性番号を検索します。
Synopsis
SPI_fnumber(tupdesc, fname)
入力
- TupleDesc tupdesc
Input tuple description
対象タプルの記述子。
- char * fname
Field name
フィールド名。
出力
- int
Attribute number
属性番号。
Valid one-based index number of attribute |
1から始まる有効な属性番号。 |
SPI_ERROR_NOATTRIBUTE if the named attribute is not found |
SPI_ERROR_NOATTRIBUTE
指定属性名が存在しない場合。 |
説明
SPI_fnumber
returns the attribute number for the attribute with name in fname.
SPI_fnumber
は、引数 fname で指定された名前を持つ属性の属性番号を返します。
使い方
Attribute numbers are 1 based.
属性番号は1から始まります。