I want to split a comma-separated string in Category
column :
Category |
---|
Auto,A,1234444 |
Auto,B,2345444 |
Electronincs,Computer,33443434 |
I want to get only a single value from above string:
value1: Auto
value2: A
value3: 1234444
I found how using Replace()
and Trim()
. However, I want an easier approach. In SQL there is SubString()
but not in SQLite. substr()
can set a maximum length but my string doesn't have fixed length.