How to create a function in SQL Server

前端 未结 5 1212
遇见更好的自我
遇见更好的自我 2020-12-07 18:09

Please help me, how to filter words in SQL using a function?

I\'m having a hard time if I explain it so I\'m giving example:

ID       |       Websit         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 19:12

    I can give a small hack, you can use T-SQL function. Try this:

    SELECT ID, PARSENAME(WebsiteName, 2)
    FROM dbo.YourTable .....
    

提交回复
热议问题