A
Aussie Rules
Hi,
I have a string that is built on the fly, and often of different lengths.
The string contains a series of numbers with a comma seperating each number.
For example
'2,4,7,8,12,45,67,8,9,33' or it could be '2,6,9'
The problem I have is that i am passing this into a stored procedure 'in'
clause, and it requires that the numbers be in this format
'2','4','7','8','12','45','67','8','9','33' or '2','6',9'.
Is there a quick way to replace the , with a ',' string, keeping in mind
that the length and number of replaces is always going to be different.
Thanks
I have a string that is built on the fly, and often of different lengths.
The string contains a series of numbers with a comma seperating each number.
For example
'2,4,7,8,12,45,67,8,9,33' or it could be '2,6,9'
The problem I have is that i am passing this into a stored procedure 'in'
clause, and it requires that the numbers be in this format
'2','4','7','8','12','45','67','8','9','33' or '2','6',9'.
Is there a quick way to replace the , with a ',' string, keeping in mind
that the length and number of replaces is always going to be different.
Thanks
