Answers for "take only one letter in sql"

SQL
0

t sql return on letters only

Create Function [dbo].[RemoveNonAlphaCharacters](@Temp VarChar(1000))
Returns VarChar(1000)
AS
Begin

    Declare @KeepValues as varchar(50)
    Set @KeepValues = '%[^a-z]%'
    While PatIndex(@KeepValues, @Temp) > 0
        Set @Temp = Stuff(@Temp, PatIndex(@KeepValues, @Temp), 1, '')

    Return @Temp
End
Posted by: Guest on November-05-2020

Code answers related to "take only one letter in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language