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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -