SQL> create or replace procedure spGetCurrentTime
2 (nYear out integer ,
3 nMonth out integer ,
4 nDay out integer ,
5 nHour out integer ) is
6
7 begin
8 nYear:=to_number(TO_CHAR(SYSDATE, 'YYYY'));
9 nMonth:=to_number(to_char(sysdate,'mm'));
10 nDay:=to_number(to_char(sysdate,'dd'));
11 nhour:=to_number(to_char(sysdate,'hh24'));
12 end ;
13 /Procedure created
2 (nYear out integer ,
3 nMonth out integer ,
4 nDay out integer ,
5 nHour out integer ) is
6
7 begin
8 nYear:=to_number(TO_CHAR(SYSDATE, 'YYYY'));
9 nMonth:=to_number(to_char(sysdate,'mm'));
10 nDay:=to_number(to_char(sysdate,'dd'));
11 nhour:=to_number(to_char(sysdate,'hh24'));
12 end ;
13 /Procedure created
解决方案 »
- 实现一个字段,只能由字母打头(大小写均可),后面是7位阿拉伯数字,且最后一位不能为0
- 标量类型问题
- 频繁进行插入提交 报ORA-24337错误
- 请教一个自动增长设为1,可是运行时变为2的问题
- 采用事务处理的方式后为什么还会出现数据不一致的情况?
- 用一条SQL语句把cat_a表中的值倒到cat_b 表中怎么写?急
- 怎样在存储过程中引用其他用户的表?
- Oracle 有没有SQL语句将数据表导成一个文本文件,以及将他导入的代码!
- select * from newpartlotlist where lotid='A680102.3'为什么没有结果?
- oracle默认新建一个数据库,用internal/oracle 注册执行exp(全部默认) 每次都是执行到导出存储过程时失败,为什么
- 如何高效的将文本中的数据插入oracle表中
- 各路高手,我想在oracle的表中修改单据号D00000026~D0000798(字符类型)这些记录的的审核日期,有没有比较方便快捷的方法!
逻辑错误呢一般是很难发现的,只有满足你的业务要求就是对的/。