create or replace procedure myTest
()
as
begin
select *
from hr.test
where hr.test.no=4;
end myTest;declarebegin
myTest();
end;
()
as
begin
select *
from hr.test
where hr.test.no=4;
end myTest;declarebegin
myTest();
end;
解决方案 »
- 写个查询语句取出从2008年到当前年
- 向信息表policy成批插入数据并删除重复数据 40-100万数据 oracle
- Oracle 中 查询IP地址的SQL语句,实在写得晕了
- 关于调用弱类型游标的问题
- 通用数据库格式转换工具最新版,支持oracle,sqlsever,access等数据库之间数据格式转换
- sql语句
- 急,关于update的问题
- utl_file.fseek(fid,absolte,relitive)怎么定位到文件第一行
- Oracle+PHP 按照这样方式搭建【游戏管理平台】的【数据库】如何优化?
- oracle字段查不出值得问题
- 关于创建表的一些小问题
- 关于date和timestamp类型
如果只得到某些字段值,可以用select ...into....
hr.test.no=4的记录只有一条的!
from hr.test
where hr.test.no=4;
就错在这里了.如果是结果只返回一条的话也得用select ... into ....from ...,如果是多条就得用游标了.
Insert Into tes Values(1,2);
Insert Into tes Values(13,4);
Select * From tes;Create Or Replace Procedure myTest
As
a Number;
b Number;
Begin
Select a,b Into a,b From tes Where b =4 ;
dbms_output.put_line(a ||''|| b);
End;Begin
mytest();
End;
不知这样能看明白不.