| От | Stuart Woodward |
|---|---|
| Тема | Re: how many records |
| Дата | |
| Msg-id | 20030911101954.F765.WOODWARD@garage.co.jp обсуждение исходный текст |
| Ответ на | Re: how many records (Simon Willison <cs1spw@bath.ac.uk>) |
| Ответы |
Re: how many records
|
| Список | pgsql-novice |
> Bryan Irvine wrote: > Is there an easy way to count how many records there are? On Wed, 10 Sep 2003 18:26:30 +0100 Simon Willison <cs1spw@bath.ac.uk> wrote: > Yes, using count(*): > select count(*) from tablename; Is there any performance difference in explicitly naming a column to count? i.e select count(id) from tablename; (I know that a lot of beginners always "select *" even when they don't need all the information which (I think) is slower than selecting just what need.)
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера