--avoid 0 here
select * from Cost_Mdl_Ver_Type where instr('1002,1003,',mdl_ver_typ_Id||',')>0
select * from Cost_Mdl_Ver_Type where instr('1002,1003,',mdl_ver_typ_Id)>0
-- 0 , 002 , 003 ,100 都会检索出来
Idea from
select level l from dual connect by level <=5;
And this is the SQL :
SELECT mdl_ver_typ_desc FROM cost_mdl_ver_type where mdl_ver_typ_Id in (
(
select
trim( substr (txt,
instr (txt, ',', 1, level ) + 1,
instr (txt, ',', 1, level+1)
- instr (txt, ',', 1, level) -1 ) )
as token
from (select ',1000, 1001,' txt
from dual)
connect by level <=
length('1000, 1001')-length(replace('1000, 1001',',',''))+1
)
)
分享到:
相关推荐
下载 java JVM INSTR 反编译下载 java JVM INSTR 反编译
教你如何在vb中使用instr函数
informix数据库实现oracle环境instr函数功能
V20_op_instr_0520_zh-CHS.pdf
G120XA_cmpct_op_instr_1020.pdf
G120XA_op_instr_0319_zh-CHS.pdf
西门子V20_op_instr_0618_zh-CHS变频器手册,安全说明;安装注意事项;参数设置;通讯设置;报警显示及处理;维护保养;故障处理;附件选择;新功能及扩展功能等.
visa资源
西门子V20说明书只有说明书 真的只有这个
Oracle instr 函数与 substr 函数详细说明 oracle 中的 instr 函数和 substr 函数是两种常用的字符串处理函数,它们可以用来处理和操作字符串数据。 Instr 函数 Instr 函数的主要作用是返回要截取的字符串在源...
instr和substr存储过程,分析内部大对象的内容 instr函数 instr函数用于从指定的位置开始,从大型对象中查找第N个与模式匹配的字符串。 用于查找内部大对象中的字符串的instr函数语法如下: dbms_lob.instr( lob_...
NULL 博文链接:https://tangkuo.iteye.com/blog/2257112
instr(title,'手册')>0 相当于 title like '%手册%' instr(title,'手册')=1 相当于 title like '手册%' instr(title,'手册')=0 相当于 title not like '%手册%' t表中将近有1100万数据,很多时候,我们要进行字符串...
INSTR的用法 Oracle里的Indexof INSTR的用法 Oracle里的Indexof INSTR的用法 Oracle里的Indexof
pci dss saq instr guide v2.0
SQL数据库Instr函数限制和替代方案 Instr函数是许多编程语言中常用的字符串处理函数,可以在字符串中查找指定的子字符串并返回其位置。然而,在SQL数据库中,Instr函数并不是一个标准的函数,不能直接使用。这篇...
好在我们还有另外一个办法,那就是使用instr,instr的用法如下: select * from students where instr(address, 'beijing') > 0 另外,还有个笨办法,那就是使用like,说到这里大家应该知道怎么做了吧: sel
oracle 截取字符(substr),检索字符位置(instr) case when then else end语句使用 收藏 常用函数:substr和instr 1.SUBSTR(string,start_position,[length]) 求子字符串,返回字符串 解释:string 元字符串 start_...
1、instr()函数的格式 (俗称:字符查找函数) 格式一:instr( string1, string2 ) // instr(源字符串, 目标字符串) 格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) // instr(源字符串...
在mysql中使用内部函数instr,可代替传统的like方式查询,并且速度更快。 instr 函数,第一个参数是字段,第二个参数是要查询的串,返回串的位置,第一个是1,如果没找到就是0. 例如,查询字段name中带”军”的...