解决方案 »
- 简单语法
- 讨论集中-分布的数据传输机制
- oracle与mysql的区别
- oracle 9i问题
- 一个简单的过程到底那里有错
- Linux:Red Hat Enterprise Linux Server release 5 (Tikanga) 内核:2.6.18-8.el5xen ORACLE:10201_database_linux_x86_64.cpio.gz 安装说系统不支持
- oracle行转列问题
- 安装9i问题,oracle database configuration assistant 错误!hostdef扩展名不存在
- 表、表空间、数据文件、段、范围。。。晕了``
- exp出错,请大家帮忙看看
- NUMBER问题
- 求ORACLE大大看看
SQL> select substr('B000382967',1,4)||(substr('B000382967',5)+1) t
2 from dual;
T
----------
B000382968
from 表
sorry 笔误,应该是:
select 'B' + to_char(to_number(substr(max(ID),2))+1,'FM000000000')
from 表
select 'B'||to_char(to_number(substr(max(id),2))+1,'FM000000000') from 表