Posts by Breno Oliveira • 11 points
1 post
-
1
votes2
answers1020
viewsA: Format ZIP in Query - Mysql
The simplest form I believe is using CONCAT() together with SUBSTRING: SELECT CONCAT(SUBSTRING(CEP,1,2),'.',SUBSTRING(CEP,3,3),'-',SUBSTRING(CEP,6,3)) FROM {suatabela} WHERE ... It will work if…
mysqlanswered Breno Oliveira 11