Most of my experience is in VB and Java and have always handle this in my code.
I thought that it might be faster to do it right in SQL though.
I have a column called Name that contains firstname,middlename, lastname.
I need to display them in separate fields in an ASP page. Normally I would grab a record set and use SPLIT(record,',')
and create an array.
Is there a way of doing this right in sql?
I'm think something like
Select split(name,',',1) as First, split(name,',',2) as middle, split(name,',',3) as last
should be in sql as well, I just can't find the syntax.
Any help would be appreciated.
"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001
I thought that it might be faster to do it right in SQL though.
I have a column called Name that contains firstname,middlename, lastname.
I need to display them in separate fields in an ASP page. Normally I would grab a record set and use SPLIT(record,',')
and create an array.
Is there a way of doing this right in sql?
I'm think something like
Select split(name,',',1) as First, split(name,',',2) as middle, split(name,',',3) as last
should be in sql as well, I just can't find the syntax.
Any help would be appreciated.
"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001