专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Oracle开发

select * from where titi in( select eplace() ) 的使用,球拯救

发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
select * from where titi in( select eplace() ) 的使用,球解救
我要查找一个集合,单独执行select  ''''||replace(Ztdoc,',',''',''')||'''' as urls from   sl_hot_sport t where t.Htype='164' and t.id=46,这句会得到'201509/11/121.png','201509/11/add.png','',
如果将这个结果放到语句select   e.title, e.fileurl from ss_feature_document e
where  e.fileurl in ('201509/11/121.png','201509/11/add.png',''),里是能得到数据的,但是如果这两句结合后。如下
就得不到数据了,求解该怎么办??
select   e.title, e.fileurl from ss_feature_document e
where  e.fileurl in (select  ''''||replace(Ztdoc,',',''',''')||'''' as urls from   sl_hot_sport t where t.Htype='164' and t.id=46)
------解决思路----------------------
你查出来的是一个记录,用 in 操作,相当于使用 = 比较符,
你这里要使用 instr 函数。

instr((select .....) , e.fileurl )  > 0 这样的语法, 中间那个 select 是你那一长串 select ... replace 。。
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: