I want to separate comma-separated String inside SQLite database
Example: I have a Category column in 1 of my table.
|Category | |------------------------------| |Auto,A,1234444 | |Auto,B,2345444 | |Electronincs,Computer,33443434|
I want to get only one value from the line above.
value1: Auto value2: A value3: 1234444
I searched a lot on Google; I found a way to replace the comma using Replace() and Trim() . However, I want a lighter approach.
In SQL, there is SubString() . But there is no such function in SQLite. How to solve it?
EDIT . I checked substr() . But for this function, you can set the maximum length to get a string value, and my string value does not have a fixed length.
source share