| От | postgres-novice@coreland.ath.cx |
|---|---|
| Тема | Re: Array of C integers to temporary table? |
| Дата | |
| Msg-id | 20090127204755.GB89472@logik.internal.network обсуждение исходный текст |
| Ответ на | Re: Array of C integers to temporary table? ("Obe, Regina" <robe.dnd@cityofboston.gov>) |
| Список | pgsql-novice |
On 2009-01-27 14:47:22, Obe, Regina wrote:
>
> I'm not quite sure what you mean by an array of C integers. You mean
> you have an array in C
> that you are trying to bring into PostgreSQL, or a random assortment of
> integers in C you would like to bring in,
> or you have a PostgreSQL array.
Hi.
Yes, should've been clearer about that really. What I meant was an array
of integers in C that I want to get into PostgreSQL somehow:
void
select_all_matching (int *ids)
{
/* SELECT * FROM some_table WHERE id IN (SELECT * FROM ids); */
}
Given the ancient version of Postgres I'm being asked to use, it looks
like I'll have to use the COPY functions in libpq or just do things the
long way...
thanks for your time!
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера