Test_String = '105 A"
I am trying to find the position of the blank character in this string. How do I code for it?
thanks!
Hi @Dolly Kirubavathi ,
You may try smth like this:
SELECT *,INSTR('String', " ") AS 'Position'FROM T*
Hope it helps your case.
I tried that. That did not work. May be it an Enter Character. How would I look for that?
Please help!
Thank you!
The new line is an invisible character, it doesn't count in the string length.
Maybe you can share your real use case? What data do you have in your column and what exactly you are trying to do?
This is my real use case:
Data in real column looks like this
Test_String
105 A
4 B
5000 C
I want to extract the number out and then do a SUM of all the numbers. My end goal is to get to 105 + 5 + 5000 = 5110
It looks like you're new here. Sign in or register to get started.