I'm a bit of a novice so be gentle with me.
I'm looking to convert bank account sortcode data (6 digit numeric eg "123456") into the following format "12-34-56"). That is inserting hyphens / dashes between each pair of digits retrieved from the database.
Thanks a lot.
If you are using SQL Server, then You can simply try like,
OR
You can use,