Query Cost

Поиск
Список
Период
Сортировка
От ShepherdHill DB Subscriptions
Тема Query Cost
Дата
Msg-id 432DB49A.40904@shepherdhill.biz
обсуждение исходный текст
Ответы Re: Query Cost  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
Hi,

I have a table with this schema:

CREATE TABLE billing.bill
(
  sno serial NOT NULL,
  billno int4,
  det date NOT NULL,
 .
 .
 .
  CONSTRAINT bill_pkey PRIMARY KEY (sno)
)

I want to execute a query that will not return any record. Which of
these queries is cheaper please?

1.   Select * from billing.bill where 1=0
2.   Select * from billing.bill where sno=0

Thanks for your assistance.

Chris.

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: ltree and ordering - what index?
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: Asychronous database replication