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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -