instr

时间:2021-07-04 20:08:31
MySQL: select * from tableName where name like '%helloworld%';
Oracle:select * from tableName where instr(name,'helloworld')>0;
select BLACK_VALUE, COUNT(*)as total
from EC_COUPONS_BLACK
where IS_DELETE='N' AND BLACK_TYPE='goods'
and IS_ALL_COUPONS='Y'
and instr(','||BLACK_VALUE||',',','||(select goods_id from goods where goods_no = ''and is_delete = 'N')||',') >0
GROUP BY BLACK_VALUE