Hi,
This is quite a simple one, but I;d like to know how i find the position of a single quote within a string. For example if the string is:
"shopNo, weekNo, 'Monday' as dayofweek"
I want to get the position of the character just before the M in monday. so this would give position 17?
I am not sure whether to use charindex, or patindex and i dont know how to delimit in these functions.
Thanks,
MrPeds
This is quite a simple one, but I;d like to know how i find the position of a single quote within a string. For example if the string is:
"shopNo, weekNo, 'Monday' as dayofweek"
I want to get the position of the character just before the M in monday. so this would give position 17?
I am not sure whether to use charindex, or patindex and i dont know how to delimit in these functions.
Thanks,
MrPeds