Help Center/ GaussDB/ Developer Guide(Distributed_V2.0-8.x)/ Application Development Guide/ Development Based on libpq/ libpq API Reference/ Database Statement Execution Functions/ PQfnumberEx
Updated on 2026-04-08 GMT+08:00
PQfnumberEx
Description
Returns the column number associated with the given column name. Columns are numbered starting at 0.
Prototype
int PQfnumberEx(const PGresult* res, const char* field_name, bool case_sensitive);
Parameters
| Keyword | Description |
|---|---|
| res | Handle to the operation result. |
| field_name | Column name. |
| case_sensitive | Specifies whether the column name is case sensitive. |
Return Value
An integer of the int type.
Parent topic: Database Statement Execution Functions
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot