rt
解决方案 »
- 急!关于create table和select中包含group by时出现的错误
- 请问如下包过程怎么写?
- 请教:ORA-01219:数据库未打开:仅允许在固定表/食堂中查询。
- ORA-12203: TNS:unable to connect to destination不知道是什么问题
- 如何用Update语句同时更新列中数据的部分值
- oracle10g日文版下载
- 远程访问oracle
- 关于中间件连接ORACLE时Licence数量是否有限制的讨论!
- 急——用存储过程解决自增字段的问题
- 急!!高分求教:请问在red hat7.0下Oracle8.1.6能否支持汉字?如果能请问怎样安装?
- 安装数据库后,能否更改机器名
- 如何插入带分号的字段
2 where instr(substr('123456789',-4,4),'6',1) = 0
3 and instr(substr('123456789',-4,4),'8',1) = 0
4 and instr(substr('123456789',-4,4),'9',1) = 0;
1+1
----------
1+1
----------这个比较简单
1+1
----------
这个错了,不懂正则
[SYS@ora10gr1] SQL>select * from(
2 select '123456666' as a from dual
3 union
4 select '131123435' from dual
5 union
6 select '12345a611' from dual
7 )
8 where regexp_like(a,'[^6|8|9]{4}$');A
---------
131123435
{4}表示 4 位
$ 表示结束的标志
可以用上面的sql
也可直接写[SYS@ora10gr1] SQL>select * from(
2 select '123456666' as a from dual
3 union
4 select '131123435' from dual
5 union
6 select '12345a611' from dual
7 )
8 where regexp_like(a,'[^689]{4}$');A
---------
131123435