sql模糊匹配%
方式一:/%將%轉(zhuǎn)義,escape忽略"/"
select * from product where sts = 'N' and device_inst_id like '%/%%' escape '/';方式二:oracle instr(device_inst_id,'%')表示在device_inst_id字段中搜索含有%的記錄,instr在oracle中與mysql中的用法不同
select * from product where sts = 'N' and instr(device_inst_id,'%')>0;
總結(jié)
- 上一篇: 【ProCAST】铸件定向凝固仿真流程学
- 下一篇: 广州大学专业选修课介绍---------