SQL syntax - Mailing list pgsql-general

From Dale Seaburg
Subject SQL syntax
Date
Msg-id ff87d197-7438-5eb5-065d-f7c52c69b741@verizon.net
Whole thread Raw
Responses Re: SQL syntax  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
My mind is drawing a blank.  Not sure where to go to find the answer.  
Here is the statement in C#:

sSQL = "SELECT \"Image_Filename\" FROM \"Instruments\" WHERE ";

To finish off the WHERE clause, I need to look at the first 2 letters, 
like "D:".  My question is how do I specify in the WHERE clause, to look 
at the first 2 characters in the Image_Filename column?  What is the 
correct SQL syntax for looking at just a portion of a column?

I feel so dumb...  This can't be that hard, but I am exhausted and 
running out of ideas.  I need someone to give me a boost!  ;-)

Thanks,
Dale.


pgsql-general by date:

Previous
From: Gary M
Date:
Subject: Re: Is there a continuous backup for pg ?
Next
From: Adrian Klaver
Date:
Subject: Re: SQL syntax