...

Поиск
Список
Период
Сортировка
От Guillaume Marçais
Тема ...
Дата
Msg-id Pine.LNX.4.05.9905241324160.30895-100000@dstp02.ncsl.nist.gov
обсуждение исходный текст
Список pgsql-sql
  I want to fill an array in my database with the content of a file. I
know the number of value I have to add (written in the begining of the
file), but I'd like not to load all the file in memory. So I can't put the
value within the INSERT command. Is it possible to insert an array with a
fixed size and to fill at after?
 I have tried things like :
CREATE TABLE timeseries (seriesid int4 PRIMARY KEY,         samples float8 []) ;
INSERT INTO timeseries (seriesid, samples[1000]) VALUES (1, '{}') ;
UPDATE timeseries SET samples[1]=5 WHERE seriesid=1 ;  -> ERROR : array_set: array bound exceeded
 Any help?
 Guillaume.



В списке pgsql-sql по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Undeliverable Message
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [SQL] Problems with refint.so and 6.5 Beta