0

I have a table which has a column named "directory" which contains strings like:

c:\mydir1\mysubdir1\
c:\mydir2
j:\myotherdir
...

I would like to do something like

SELECT FROM mytable WHERE directory is contained within 'c:\mydir2\something\'

This query should give me as a result:

c:\mydir2
Stephen H. Anderson
  • 978
  • 4
  • 18
  • 45

1 Answers1

0

Ok, I've just found that sqlite has a function instr that seems to work for my purpose.

Not sure about the performance, though.

Stephen H. Anderson
  • 978
  • 4
  • 18
  • 45