views:

273

answers:

0

Duplicate

Separate String with separator #@#

The string below I have to call three times using sql. String: JAN#@#PIET#@#HENK

The first call shoudl return: JAN The second call: PIET The third: HENK

So we could use the #@# as separator but it could be that the string is: JAN#@#PIET only. Still all three calls will be done where call 1 returns: JAN call 4 returns: PIET cal three return: <>

Same could happen for string JAN only.

I hope this explanation is sufficient for someone to help me with this case.