I have a table with column for storing product code.
| product_id | Product-name | product_code|
| 1 | soap | QTI4589 |
2 abc DRT45869
3 xyz IND458
I want to update all values under column product_code with QTY-4589 , DRT-45869, IND-458 …
means want to put “-” between code and number.
Tried with replace() mysql function but not working. Please help me how to do this.
Did you try the INSERT(str,pos,len,newstr) mysql function ???