Donate SIGN UP

Search for postcode using SQL

Avatar Image
Chris100682 | 15:12 Thu 23rd Nov 2006 | Technology
4 Answers
Hi,
I'm trying to write a query to search for a post code in SQL. The only problem is.... the Post code has a space.

Chris
Gravatar

Answers

1 to 4 of 4rss feed

Best Answer

No best answer has yet been selected by Chris100682. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Question Author
Sorry should of said - there is a number of different postcodes in my table of data, some have spaces some don't!!
What database is it?
Question Author
It's Informix.
Just a guess:

Select * from Address WHERE ThisPostcode like Replace(' ' with '' in Postcode)

(This assumes that you have already removed spaces from the user-entered "ThisPostcode", so now you need ro remove spaces from the Column (Postcode) on which you are searching).

1 to 4 of 4rss feed

Do you know the answer?

Search for postcode using SQL

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.