Oracle sql 子字符串长度判断

 

select t.* from   d_table t 
WHERE  substr(t.col,1,1)='8'   and instr(t.col,'/')>0 
and length(substr(t.col,1,instr(t.col,'/')))>5;

 字符串的前两位都是数字:

select * from   d_table t 
WHERE regexp_like(substr(t.col,1,2), '^[[:digit:]]+$') and length(t.col) > 7 ;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案