Using data from a SQL db, I need to fill a string with 60 pieces of data set at specific locations. For example, data 1 will be at myString location 1 to 4, data 2 will be at 5 to 10, etc.
mySQL SELECT INSERT('Originalstring', 4, 5, ' insert ')
would be perfect but I am using SQL. How can I do this in SQL?
concat().tsqlequivalent of mysql'sSELECT INSERT. Although, if possible, I'd recommend doing this in the code instead of in the database. String manipulation is clunky and weird insqland you'd be much better served having the application logic take care of this and pass the updated value down.