Re: limit table to one row

Поиск
Список
Период
Сортировка
От Brandon Metcalf
Тема Re: limit table to one row
Дата
Msg-id Pine.LNX.4.58L.0906091011340.11099@cedar.geronimoalloys.com
обсуждение исходный текст
Ответ на Re: limit table to one row  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Ответы Re: limit table to one row  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Re: limit table to one row  ("Octavio Alvarez" <alvarezp@alvarezp.ods.org>)
Список pgsql-general
g == gryzman@gmail.com writes:

 g> 2009/6/9 Brandon Metcalf <brandon@geronimoalloys.com>:


 g> > I'm not sure I follow how this solves the problem.

 g> Well, surely if you just need one row, you need single value per key.
 g> And that's the, imo , better solution to that problem, than limiting
 g> number of rows.


Hm.  Maybe I'm looking at the problem incorrectly.  I have a situation
where I need a table like

  CREATE TABLE foo (
    start  DATE,
    length VARCHAR(10),
  );

I need to be able to get one value for each column at any given time.
Specifically, I need to get a value for start and add the value for
length to get a time period.  Since your approach would allow more
than one row, how does it help me?

--
Brandon

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

Предыдущее
От: "G. Allegri"
Дата:
Сообщение: Re: column name gets substitudes inside an execute statement of a trigger function. how to avoid it?!
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: column name gets substitudes inside an execute statement of a trigger function. how to avoid it?!