1. 程式人生 > >sql中的模糊查詢 like 和oracle中的instr()函式有同樣的查詢效果

sql中的模糊查詢 like 和oracle中的instr()函式有同樣的查詢效果

注:MySQL中的模糊查詢 like 和oracle中的instr()函式有同樣的查詢效果; 如下所示:

select * from tableName a where name like '%helloworld%';
select * from tableName a where instr(name,'helloworld')>0;  --這兩條語句的效果是一樣的