I need a string that looks like XXXXXXXXXXXX to look like this XX-XX-XXXXXXX-X. I don\'t know of a function or pattern tool in MySQL that can do this. Do you?
if the length of the string is fix, you can just simple string manipulation
SELECT pat, CONCAT_WS('-', SUBSTR(pat,1,2), SUBSTR(pat,3,2), SUBSTR(pat,5,7), RIGHT(pat,1)) FROM tableName