Re: LONG - Question on dealing w/ numerics

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LONG - Question on dealing w/ numerics
Дата
Msg-id 19082.1043813296@sss.pgh.pa.us
обсуждение исходный текст
Ответ на LONG - Question on dealing w/ numerics  ("David Durst" <ddurst@larubber.com>)
Ответы Re: LONG - Question on dealing w/ numerics
Список pgsql-sql
"David Durst" <ddurst@larubber.com> writes:
>   insert into journal_lines (entry_id,account_id,line_type,line_amount)
> values (eid,aid,ltype,amount);
>   select into line * from journal_lines where entry_id = eid AND
> account_id = aid AND ltype = ltype;

I bet that last should be line_type = ltype?

One thing you have to watch with plpgsql's SELECT INTO is that it
doesn't complain if the WHERE would match multiple rows.  You get
one of the rows, and no indication that others would have matched.
        regards, tom lane


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

Предыдущее
От: "Rodger Donaldson"
Дата:
Сообщение: Re: CSV import
Следующее
От: "Luke Pascoe"
Дата:
Сообщение: checking data integrity in a recursive table