mysql和oracle find_in_set()不同用法

 

 

mysql用法:

  select * from user where FIND_IN_SET('4',type);
  查询字段(strlist)中包含(str)的结果,返回结果为null或记录

oracle用法:
  select * from user where instr(','||type||',',',4,')<>0;
  <>0即为存在,返回记录


posted on 2019-03-27 14:47  justinj  阅读(153)  评论(0编辑  收藏  举报

导航