当前位置:首页 » 编程软件 » 存过编译失败哪里看

存过编译失败哪里看

发布时间: 2022-08-26 21:08:02

Ⅰ oracle存储过程编译不通过,求各位大虾帮我看下

FOR i IN 1...1000 LOOP 语法错误 是两个点!
,INSERT ID,NAME,age,email,sex,birthday,create_time INTO person VALUES(
这一段的insert 这个一行也是有错误

--1-birthday DATE 与birthdaty:=DATE'1992-05-01'; 不是同一个变量

--以下是更过后的,可以参考下 希望对你有帮助1

create or replace procere insert_person(
NUM IN INT
)
AS
ID INT;
NAME VARCHAR2(10);
age NUMBER;
email VARCHAR2(10);
sex NUMBER;
birthday DATE;
create_time TIMESTAMP;
BEGIN
ID:=NUM;
NAME:='张三';
age:=25;
email:='shangsan';
birthday:=to_date('1992-05-01','yyyy-mm-dd');
create_time:=SYSTIMESTAMP;
FOR i IN 1..1000 LOOP
sex:=1;
IF(i<500)THEN
sex:=0;
END IF;
INSERT INTO person( ID,NAME,age,email,sex,birthday,create_time) VALUES(

NUM+i,
NAME||i,
age,
email||i||'@163.com',
sex,
birthday,
create_time
);
END LOOP;
COMMIT;
dbms_output.put_line('执行结束');
END;

Ⅱ oracle存储过程创建编译型错误,哪里写错了,帮忙看看,谢谢。

Show err 结果帖出来看看啊

简单看看你的代码, 目的是要一个存储过程, 返回 结果集合的样子.

下面是一个 函数返回结果集合的例子, 你可以参考参考.

sql> create or replace package pkg_HelloWorld as
2 -- 定义ref cursor类型
3 type myrctype is ref cursor;
4 --函数申明
5 function getHelloWorld return myrctype;
6 end pkg_HelloWorld;
7 /

程序包已创建。

SQL> CREATE OR REPLACE package body pkg_HelloWorld as
2 function getHelloWorld return myrctype
3 IS
4 return_cursor myrctype;
5 BEGIN
6 OPEN return_cursor FOR
7 SELECT 'Hello 1' AS a, 'World 1' AS B FROM al
8 UNION ALL
9 SELECT 'Hello 2' AS a, 'World 2' AS B FROM al;
10 return return_cursor;
11 END getHelloWorld;
12 end pkg_HelloWorld;
13 /

程序包体已创建。

SQL> SELECT pkg_HelloWorld.getHelloWorld() FROM al;

PKG_HELLOWORLD.GETHE
--------------------
CURSOR STATEMENT : 1

CURSOR STATEMENT : 1

A B
------- -------
Hello 1 World 1
Hello 2 World 2

ORA-01031: insufficient privileges

这个错误, 是 没权限啊......

Ⅲ oracle存储过程提示编译完成但存在错误,如何查看错误

1、首先打开PL/SQL Developer软件,新建sql窗口。

Ⅳ oracle存储过程编译错误,谁帮忙看看

oracle用dbms_output.put_line来打印

比如:

str:='执行成功';
dbms_output.put_line(str);

然后就能打印了,还有,你好多地方写的都不对,比如lx已经是输入参数了,为啥还要v_lx := lx;直接引用lx不就好了,其他的,你再自己看看吧

Ⅳ 关于如何判断gcc之类的编译器的编译结果

我们再使用gcc编译的时候可以让他的输出信息保存到文件当中

gccmain.c-omain&>status.txt

上面的命令就是将gcc编译的信息保存到status.txt文件中,然后我们再程序中读取文件,看文件是否有内容,没有内容就说明没有报错和警告,编译成功。有内容就对每一行内容进行判断,看是warring还是error,只有warring也代表编译成功,有error代表编译失败,然后把这些报错信息都打印出来就好了。

下面看一下例子:

Ⅵ 如何统计oracle中编译失败的存储过程

SELECT*
FROMDBA_OBJECTSS
WHERES.STATUS='INVALID'
ANDS.OBJECT_TYPEIN('PACKAGE','PACKAGEBODY');

Ⅶ 怎么看是否反编译成功或者失败

我反编译systemui后 I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-xhdpi/mifavor_tabhost_header_bg.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/stat_sys_signal_out.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/stat_sys_signal_in.png
W: Cant find 9patch chunk in file: "drawable-xhdpi/setting_btn_normal.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xhdpi/mifavor_bg_white.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/stat_sys_signal_inout.png
W: Cant find 9patch chunk in file: "drawable-xhdpi/mifavor_status_extend_bg.9.png". Renaming it to *.png.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

Ⅷ pls-00103存储过程编译失败

1. CURSOR curXXXX IS select .... from ... 而不用 for 2. item = @item ,@item是sqlserver的变量定义方法吧? 这儿能不能好? 我不确定 3. company = company code = code 到底哪个是字段名、那个是变量名,建议不要用和字段名相同的变量名。

Ⅸ 写了一个Oracle存储过程,编译没通过,请帮忙看下哪里有语法问题。

有错误啊!

create or replace procere adjust_inventory(p_goods_id in number,p_adjust_count in number)
as
declare
goods_count number(6,0);
adjust_goods_name number(6,0);
begin
if (p_goods_id is null) then
dbms_output.put_line( '商品ID为空,不能操作');
return;
end if;
select surplus into goods_count from y_goods where goods_id =p_goods_id;
if (goods_count < p_adjust_count) then
dbms_output.put_line( '商品调整数量大于库存量,不能操作');
return;
end if;
update y_goods set surplus = surplus - p_adjust_count where goods_id = p_goods_id;
select surplus into goods_count from y_goods where goods_id = p_goods_id;
select goods_name into adjust_goods_name from y_goods where goods_id = p_goods_id;
dbms_output.put_line( goods_name || '的库存成功调整,目前库存数量为' || goods_count);
end;
end adjust_inventory;

热点内容
java等待 发布:2025-02-07 07:28:24 浏览:611
vs编译器会自己加空格吗 发布:2025-02-07 07:23:05 浏览:174
光遇切换账号安卓要输入些什么 发布:2025-02-07 07:10:20 浏览:501
多角线算法 发布:2025-02-07 07:08:56 浏览:273
有效提高ftp传输速度 发布:2025-02-07 07:06:47 浏览:703
寒灵之剑脚本 发布:2025-02-07 06:57:12 浏览:119
解压的窗口 发布:2025-02-07 06:44:34 浏览:798
android身份证 发布:2025-02-07 06:36:43 浏览:431
python的库在哪 发布:2025-02-07 06:30:24 浏览:349
带锁的铅笔如何改密码 发布:2025-02-07 06:18:05 浏览:165