How to split single name with space in sql

  • I have  table data with stores like

    select Name from tblstudent

    Result will be Southeri,Brettuen

    I need space after comma  (Result should be like Southeri, Brettuen)

     

    How can we achieve this?

     

  • This was removed by the editor as SPAM

  • declare @text varchar(100) = 'Southeri,Brettuen'

    select @text, Replace(@text, ',' ,', ')

  • Ty so much, It worked!!!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply