MySQL Forums
Forum List  »  Newbie

Re: How to check if `Pcode` from the table is in the string 'AB134DE'
Posted by: Phillip Ward
Date: September 17, 2014 05:58AM

Just being contrary here, but don't UK Postcodes usually have a space in them, separating the Outward Code (the Postcode Area and Postcode District that, I believe, you're trying to search for here) from the Inward Code (the last three characters)?

http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom#Overview

A tiny bit of up-front format "enforcement" and your database query collapses to a simple where clause.

Regards, Phill W.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.