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 last 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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close