SQLITE: select rows where a certian column is contained in a given string -
i have table has column named "directory" contains strings like:
c:\mydir1\mysubdir1\ c:\mydir2 j:\myotherdir ...
i like
select mytable directory contained within 'c:\mydir2\something\'
this query should give me result:
c:\mydir2
ok, i've found sqlite has function instr seems work purpose.
not sure performance, though.
Comments
Post a Comment