Need specific string in SQL Server -
i need guys.
i trying specific word whole string in sql server.
i have following string:
'abc, xyz'
need output : abc
now need abc out of whole string. tried substring , trim function couldn't appropriate output.
could anyonel please me?
thank in advance!
try use patindex example
select substring ('abc, xyz',1, patindex ( '%,%', 'abc, xyz')-1)
Comments
Post a Comment