Seeking for the fore-part of the key - Mailing list pgsql-sql

From Havasvölgyi Ottó
Subject Seeking for the fore-part of the key
Date
Msg-id 34608c0c0901111250o3bfb3cbcqb21b235d5631a26d@mail.gmail.com
Whole thread Raw
Responses Re: Seeking for the fore-part of the key  (Andreas Kretschmer <akretschmer@spamfence.net>)
List pgsql-sql
Hi,<br /><br />Let's assume I have a table (called tbl) with a column 'name' and an index on it.<br />How to optimally
findrecords whose name column begins with - say - "Pre"?<br />I know it can be done with LIKE (WHERE name LIKE 'Pre%'),
butwill this use the index mentioned above to optimize the search?<br /><br />Thanks,<br />Otto<br /> 

pgsql-sql by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: some howto/theory book/tutorial on practical problem solving in SQL
Next
From: Andreas Kretschmer
Date:
Subject: Re: Seeking for the fore-part of the key