Created
August 26, 2013 15:58
-
-
Save EpocSquadron/6343099 to your computer and use it in GitHub Desktop.
SQL for left padding zipcodes that are already in the database.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `table` SET `zip` = LPAD(`zip`, 5, '0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment