Re: Select All Columns

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: Select All Columns
Дата
Msg-id m2fysoeue4.fsf@Douglas-McNaughts-Powerbook.local
обсуждение исходный текст
Ответ на Select All Columns  ("Tan Chen Yee" <tancy@gussmanntech.com>)
Список pgsql-general
"Tan Chen Yee" <tancy@gussmanntech.com> writes:

> If I want to retrieve all columns from a table, is there any disadvantage by
> using select *
> instead of listing all the columns ? Will select * cause overhead, more
> times to run ?

No, it shouldn't make any difference there.  The disadvantage of
SELECT * is that adding, removing or changing columns can break your
client code (depending on what client library you're using) because
the records returned by a query will change format without warning.

-Doug

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

Предыдущее
От: "Tan Chen Yee"
Дата:
Сообщение: Select All Columns
Следующее
От: Bob
Дата:
Сообщение: Re: Select All Columns