Q

Validating postal code spaces

I have a MySQL database with records that were imported previously for validation. I'd like to locate all Canadian postal codes without a space between the character sets and replace them with a space. For example, A1A2B2 would turn into A1A 2B2. Where can I learn how to do this?
You would be better off removing spaces from the rows that do have spaces. The space is not part of the postal code and can be added later when needs be.
This was first published in August 2004

Dig deeper on Open source databases

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close