代码如下:create or replace package init_table is -- Author : ADMINISTRATOR
-- Created : 2011/9/1 15:38:12
-- Purpose : this package is initialize all table -- Public type declarations -- Public constant declarations
-- Public variable declarations
i number; --循环变量
j number; --临时变量 -- Public function and procedure declarations procedure add_rows ( --初始化学生,课程表
num in number, --数量
table_name in varchar2 --表名
);
proceduce init_score(); --初始化学生成绩表
end init_table;上面红色哪行报错,错误信息:
PACKAGE SYC.INIT_TABLE 编译错误错误:PLS-00103: Encountered the symbol ")" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
continue avg count current exists max min prior sql stddev
sum variance execute forall merge time timestamp interval
date <a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<一个带有字符集说明的可带引号的字符串文字>
<一个可带引号的 SQL 字符串> purge
The symbol "nu
行:26
文本:proceduce init_score(); --初始化学生成绩表
package 头中,声明的存储过程一定要带参数吗?为什么带参数的声明没报错,不带参数的存储过程就报错?
-- Created : 2011/9/1 15:38:12
-- Purpose : this package is initialize all table -- Public type declarations -- Public constant declarations
-- Public variable declarations
i number; --循环变量
j number; --临时变量 -- Public function and procedure declarations procedure add_rows ( --初始化学生,课程表
num in number, --数量
table_name in varchar2 --表名
);
proceduce init_score(); --初始化学生成绩表
end init_table;上面红色哪行报错,错误信息:
PACKAGE SYC.INIT_TABLE 编译错误错误:PLS-00103: Encountered the symbol ")" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
continue avg count current exists max min prior sql stddev
sum variance execute forall merge time timestamp interval
date <a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<一个带有字符集说明的可带引号的字符串文字>
<一个可带引号的 SQL 字符串> purge
The symbol "nu
行:26
文本:proceduce init_score(); --初始化学生成绩表
package 头中,声明的存储过程一定要带参数吗?为什么带参数的声明没报错,不带参数的存储过程就报错?
解决方案 »
- oracle表定时同步到mysql问题
- 取统计排行语句
- sql 找出日期连续的记录
- ORA-01200错误如何恢复(高分在线等)
- Ubuntu下11gR2的sqlnet.ora为何不起作用?
- 数据累计问题(带表结构及数据)
- 触发器多条记录插入问题
- 请教各位大侠一个关于数据库联机重做日志损坏导致数据库不可用的为题(很急啊,大家帮帮忙!)
- 问个简单的问题:我想把substr(hm,1,2)和sub(hm,4,2)两个值组合成一个字符,怎么放在一起呢?
- 用试图能否实现从上月26日到本月25日的月试图????
- oracle 乱码问题
- app_folder.define_folder_block 的问题
如果你不带参数,就把()去掉;
如果有(),有一定要有参数。