Обсуждение: How to get int from select

Поиск
Список
Период
Сортировка

How to get int from select

От
"frank ernest"
Дата:
Hello, as far as I can tell there is only one method of getting rows and columns from a select query and it is with
PQgetvalueI wanted to know what byte order I'd be getting out though. I'm planning to use PQexec to pass the parameters
inso I'm not sure what typsend and typreceive will be set to. I'm planning the connection to be vialocal host so I
don'tknow if I may need to change the byte order or if I can just cast the value to int. I'm writing in C.
 
Thanks