From: | "Dave [Hawk-Systems]" <dave(at)hawk-systems(dot)com> |
---|---|
To: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: select offset by alphabetical reference |
Date: | 2003-05-07 11:47:27 |
Message-ID: | DBEIKNMKGOBGNDHAAKGNEEKONOAB.dave@hawk-systems.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>> 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';
>>
>> ideas on how to handle this at the postgres level rather than
>grabbing all and
>> storing it in an array in PHP/Perl for post processing to grab the desired
>> records?
>
>SELECT last, first FROM mytable WHERE last > 'Smith' ORDER BY last;
Thanks...
has tried that earlier, but mistakenly forgotten to upper case the first S, and
the results I got were obviously less than expected. Some sleep and your
confirmation that I was on the right track led to better results.
Dave
From | Date | Subject | |
---|---|---|---|
Next Message | Arjen van der Meijden | 2003-05-07 12:39:13 | Re: Small bug in postgres' ./configure script and invalid |
Previous Message | Ron Johnson | 2003-05-07 11:45:48 | Re: Small bug in postgres' ./configure script and invalid |