大家好,请问以下错误是什么原因造成的呢?
SQL> create or replace procedure pro
2 is
3 begin
4 select * from student where id=11;
5 end;
6 /Warning: Procedure created with compilation errors
SQL> create or replace procedure pro
2 is
3 begin
4 select * from student where id=11;
5 end;
6 /Warning: Procedure created with compilation errors
解决方案 »
- 请问ORDER BY ASC 和ORDER BY 1 有什么区别?
- Oracle 分组困扰求救
- 以下sql如何优化
- 编写一个程序,用以接受用户输入的数字。将该数左右转,然后显示反转后的数。
- oracle 性能问题
- 一个Procedure的问题!!!用过的请进!谢谢
- 高分急求!!!如何用SQL语句判断库中是否存在所查表或所查列名???
- 怎么样让oracle默认的日期格式为yy-mm-dd hh:mm:ss啊,不用to_date
- 為什麼我的oracle8.1.5裝上去沒有企業管理器?
- 哪里有比较完整的sql server与oracle的sql语法比较?
- 这个存储过程什么错?
- ORACLE中根据条件如何实现分类
需要赋值给变量,如
select id into v_id from student where id=11;
要么定义一个变量,用into到变量里面
要么就放到游标里面
或者把结果insert到一个表里面,比如
insert into a(aa,bb) select cc,dd from b where id=1; ---首先要建立a表。
create table a as select cc,dd from b where id=1;---不需要手动建立表