Re: select offset by alphabetical reference - Mailing list pgsql-general

From Manfred Koizar
Subject Re: select offset by alphabetical reference
Date
Msg-id ghchbvo9clfdutp1j9lrhibrpgkm1i7jss@4ax.com
Whole thread Raw
In response to select offset by alphabetical reference  ("Dave [Hawk-Systems]" <dave@hawk-systems.com>)
List pgsql-general
On Wed, 7 May 2003 01:50:47 -0400, "Dave [Hawk-Systems]"
<dave@hawk-systems.com> wrote:
>Have a table with Last, First, etc...
>wish to create a select to grab everything from table whose last name is
>alphabetically greater than 'Smith'
>
>almost like the following (which is obviously incorrect);
>    select last,first from mytable order by last offset 'Smith';

SELECT last, first FROM mytable WHERE last > 'Smith' ORDER BY last;

Servus
 Manfred


pgsql-general by date:

Previous
From:
Date:
Subject: Re: Backend memory leakage when inserting
Next
From: Arjen van der Meijden
Date:
Subject: Re: Small bug in postgres' ./configure script and invalid