[英]Count columns of select PostgreSQL
I am doing a select on a table I know how many results I have using 我在一张桌子上进行选择,我知道我使用了多少个结果
PQntuples()
PQntuples()
function . 功能。 But how can I get the number of columns?
但是,如何获取列数? Is there any function for that?
有什么功能吗?
是的, PQnfields(const PGresult*)
: //www.postgresql.org/docs/current/static/libpq-exec.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.