Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要做这样的事情
SELECT * from table1 where name ='TEST_2014.xml'
但是在“名称”列中,值以如下格式保存../data/flux/TEST_2014/TEST_2014.xml
../data/flux/TEST_2014/TEST_2014.xml
我需要帮助来删除或编辑../data/flux/TEST_2014/,只TEST_2014.xml需要对 WHERE 语句进行比较。
../data/flux/TEST_2014/
TEST_2014.xml
尝试
SELECT * from table1 where name like '%TEST_2014.xml'
如果您在 '...xml' 之后有任何字符串,那么您可以使用以下
SELECT * from table1 where name like '%TEST_2014.xml%'