I am trying to figure out how to pass a string such as
'1, 6, 9' to a Stored Proc to filter a recordset. I can't do a range, I need to be able to pass multiple, out of sequence values.
SIMPLY:
DECLARE @Var as varchar(10)
SET @Var = '1, 6, 9'
SELECT *
FROM [Table]
WHERE Table.Column in...
How do I parse a string with SQL???? For example I have a string stored in a column:
"12345/This a and That/999999/WR493-22"
How can I quickly extract the 999999 from the string?
Any suggestions would be a tremendous help as I am STUCK!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.