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.
我正在寻找一种将两列与“like”运算符进行比较的方法,但在值中包含通配符。
所以如果我有一个表1:
value dog% %cat some%value
和表2:
value doggy someothervalue cat1
这个查询:
select * from table1, table2 where table2.value like table1.value
应该返回“doggy”和“someothervalue”
这不可能?问候
有用。请参阅此 SQLFiddle 演示。