[前処理] numbers_at_station テーブルの作成
■テーブルを削除する
↓
drop table numbers_at_station;
■テーブルを作成する
↓
create table numbers_at_station (
the_time time,
numbers integer[]
);
■データの入力方法(例)
↓
INSERT INTO numbers_at_station(the_time, numbers) VALUES('12:34:56', '{10,20,30,40}');
INSERT INTO numbers_at_station(the_time, numbers) VALUES('11:23:45', '{10,20,30}');
■データの検索方法(例)
↓
ca_db=# select the_time, numbers[1] from numbers_at_station ;
the_time | numbers
----------+---------
12:34:56 | 10
11:23:45 | 10
(2 行)
(number[0]は、値が入らないので注意)