在SQL里是这样的。如果写在oracle里该怎么写呢?Create PROC backtable @SN varchar(20)As
select count(*)
from Customization
where SN=@SN
GO
select count(*)
from Customization
where SN=@SN
GO
解决方案 »
- 增加操作系统密码后 oracle连接失败
- oracle执行计划中的bytes 问题
- Oracle 连接报错,
- 请教,oracle不同版本间数据的导入导出,在线等
- SQL*plus的启动问题
- 求助:我的写法有错吗?ORA-00984,ORA-06512错误..?
- 急!!!!在线等
- 请教。。下载oracle 8.1.7 Enterprise Edition不知所云!
- 关于找数据库领域工作的调查
- 救急如救火,高分相赠,请高手指点ORALE数据快照的技术,在线等待
- 请问用户自己的表、索引、store procedure 等SQL放在哪个表?
- 如何将A数据库内的相关发生记录所涉及的表数据定期迁移至B数据库内
/
create or replace package pkg_test
is
type ResultData is ref cursor;--定义动态游标
procedure test( rst out ResultData );
end pkg_test;
/
create or replace package body pkg_test
is
procedure test( rst out ResultData )
is
begin
open rst for
select count(*)
from Customization
where SN=ASN;
--返回select * from t所查询的结果集
end;
end pkg_test;
/
v_SN varchar
v_Cnt out number
)Asbegin select v_Cnt = count(*)
from Customization
where SN= v_SN;end backtable ;