摘要:
Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->declarev_tablevarchar2(60);v_numnumber;v_s... 阅读全文
posted @ 2009-07-20 16:36
YWN's blog
阅读(301)评论(0)推荐(0)
摘要:
一个简单例子: 1、创建测试表 SQL> create table a(a date); 表已创建。 2、创建一个自定义过程 SQL> create or replace procedure test as 2 begin 3 insert into a values(sysdate); 4... 阅读全文
posted @ 2009-07-16 13:18
YWN's blog
阅读(186)评论(0)推荐(0)
摘要:
Oracle存储过程总结(一、基本应用)1、创建存储过程 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> create or replace ... 阅读全文
posted @ 2009-06-03 09:38
YWN's blog
阅读(228)评论(0)推荐(0)
摘要:
通过查询获得某个字段的合计值,如果这个值位null将给出一个预设的默认值select nvl(sum(t.dwxhl),1) from tb_jhde t where zydm=-1这里关心的nvl的用法,nvl(arg,value)代表如果前面的arg的值为null那么返回的值为后面的value ... 阅读全文
posted @ 2009-05-26 13:36
YWN's blog
阅读(325)评论(0)推荐(0)