If the result "joe@stackoverflow.com
" and I want to find the position of the @
symbol (3). Is it possible? It does not appear that SQLite has the equivalent of INSTR
, LOCATE
, POSITION
or any such function.
SELECT ?('joe@stackoverflow.com')
Update I ended up registering a custom extension function, but was surprised that I had to.
Position of char '@' can be finded by function CHARINDEX (MSSQL):
Got this from a spiceworks posting:
Retrieve filename from a path:
Got from http://community.spiceworks.com/topic/38836-sqlite-question-how-do-i-find-the-position-of-a-character-in-a-string?page=2, hope it could help someone.