December 11, 2012 at 10:18 pm
Hi,
I want to Insert Some Text in Another Text in Sql Server 2008.
How to do this.
For Eg,
I Have a text as,
'Sett_FY_Mast_2012'
I needed that as Output is,
'Sett_FY_Pooled_Mast_2012'
------------------------------------------------
Means I want to insert "_Pooled" before the word "Mast"
Thanks in Advance!
December 11, 2012 at 10:30 pm
declare @txt varchar (50)= 'Sett_FY_Mast_2012'
select stuff(@txt,8,0,'_Pooled')
-----------------------------------------------------------------------------
संकेत कोकणे
December 11, 2012 at 10:37 pm
Thanks Sanket!
December 11, 2012 at 10:43 pm
Stuff will do the trick
refer to this link for more information
December 11, 2012 at 11:28 pm
Thanks !!!!!!!!!!!!!!!!!!!!!!!
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply