concatenation - Mysql:Query for the table as below -


i have following table:

|-------------------| | id | homephone | |-------------------| | 1 | 454454125 | | 2 | 47872154587 | | 3 | 128795423 | | 4 | 148784474 | |-------------------| 

i have around 40.000 rows in table.

i want format homephone values following:

454-454-125 478-721-545-87 128-795-423 148-784-474 

i.e. after every 3 numbers want - (hyphen).
how achieve using mysql?

you need wite udf this


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -