Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

sql Query to replace the square bracket and the whole text inside with a single charecter

$
0
0

Hi All,

I  have a question.

I am using Sql Server 2012.

I have a  situation where i need to replace the entire text and the square bracket with a single charecter.

Eg:-> 

I have atext    san[123456dd]text

i just wanted to replace all teh text inside the sqaure bracket to another charecter say 'X' 

My end result should be sanXtext.

Could anyone help me regarding this?


Samproo


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>