Re: Optimized Select Statement

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Optimized Select Statement
Date: 2010-01-07 02:02:55
Message-ID: 20100107030255.7c796dc7@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 6 Jan 2010 17:45:31 -0800 (PST)
Yan Cheng Cheok <yccheok(at)yahoo(dot)com> wrote:

> situation, I will be only interested in 1 "YanChengCHEOK".

> SELECT measurement_type_id INTO _measurement_type_id FROM
> measurement_type WHERE measurement_type_name='YanChengCHEOK';

LIMIT 1

Is that what you were looking for?

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2010-01-07 02:15:19 Re: How to call SETOF function?
Previous Message Yan Cheng Cheok 2010-01-07 01:45:31 Optimized Select Statement