摘要: 存储过程(procedure)有具体的实例来学习实例1create or replace procedure dept_count--创建存储过程dept_count来统计部门个数asv_totalnumber(10);beginselect count(*) into v_total fromdept;dbms_output.put_line('总共有'||v_total||'个部门。');end;将以上代码在sql*plus中编译,一旦编译成功,就被存储在数据库中,可以被其他有权限的用户或程序来调用执行。存储过程的执行有两种方法:<1>setse 阅读全文
posted @ 2011-12-02 01:41 java简单例子 阅读(255) 评论(0) 推荐(0) 编辑