Re: Select

From: newsreader(at)mediaone(dot)net
To: Marcelo Pereira <gandalf(at)sum(dot)desktop(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Select
Date: 2001-04-17 13:35:55
Message-ID: 20010417093555.A708@dragon.universe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 17, 2001 at 09:23:02AM -0300, Marcelo Pereira wrote:
> Hi All,
>
>
> Now I would like to select all employees which name begins with the letter
> "P".....
>
> > Select * from employee where "name-begin-with-letter-P".... :-)
>

select * from employee where email ~ '^P';

or if case does not matter

select * from employee where upper(email) ~ '^P';

In response to

  • Select at 2001-04-17 12:23:02 from Marcelo Pereira

Browse pgsql-general by date

  From Date Subject
Next Message Peter T Mount 2001-04-17 13:57:12 Re: JDBC error in 7.0.3
Previous Message Marcelo Pereira 2001-04-17 12:23:02 Select