Coding
Format Telephone numbers into US format in MySQL

Format Telephone numbers into US format in MySQL

Learn how to format 10-digit telephone numbers stored as 1234567890 into the standard US style 123-456-7890 in MySQL. This post shows a simple SELECT query using CONCAT, LEFT, MID, and RIGHT to display a formatted_phone field for orders from US, Canada, and Puerto Rico.