create table TB1
(
ID NUMBER(10) not null,
CODE NCHAR(20),
NAME VARCHAR2(100)
);insert into TB1 (
select rownum as id, substr(col,1,10) as code, col as name from tb0 --随便找个表tb0和字段col就行
where rownum<=500
);create or replace function format(code in varchar2)
return varchar2 deterministic
as
begin
return replace(code,'-','');
end;
/
select rownum,code,format(code) as code0 from TB1 where rownum<=300;
看看第100条后面的记录,字段code0是否正常
(
ID NUMBER(10) not null,
CODE NCHAR(20),
NAME VARCHAR2(100)
);insert into TB1 (
select rownum as id, substr(col,1,10) as code, col as name from tb0 --随便找个表tb0和字段col就行
where rownum<=500
);create or replace function format(code in varchar2)
return varchar2 deterministic
as
begin
return replace(code,'-','');
end;
/
select rownum,code,format(code) as code0 from TB1 where rownum<=300;
看看第100条后面的记录,字段code0是否正常
解决方案 »
- ORACLE视图和物化视图 红叉叉
- plsql goto 问题
- 命令窗口中可以访问远程数据库,但在存储过程和函数中则不行???100!!
- 新手求助关于sql语句
- oracle ORA-09817
- pl/sql中怎们把vchar(4000)的数据导入到long?(感谢!)
- oracle job 错误 ORA-06512: at "SYS.DBMS_IJOB", line
- 如何实现从access数据导入到oracle
- personal oracle9i可不可以作为客户端使用?
- 请问:Create DataBase Link 的用法?
- oracle 8i 与 oracle 9i 在更新数据的时候,些代码时有什么区别吗? 在线等待中。。。。
- SQL写法
不过没装10g和11g,没测试过最不可思议的是,我9i测试中不管什么where语句
都正好100个正常的导致的后果就是自定义函数索引查询不到数据