【数据库】MySQL中的模糊查询 like 和 Oracle中的 instr() 函数
MySQL: select * from tableName where name like '%helloworld%';
Oracle:select * from tableName where instr(name,'helloworld')>0; --这两条语句的效果是一样的
//instr方式必须保证hkxz的code值不能存在交集,其中一个code不能是另一个code的子集,...
原创
2019-08-09 08:57:09 ·
166 阅读 ·
0 评论