Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got

1、错误描述

13:58:20	call new_procedure('2000','zhangsan')	Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got 2	0.000 sec

2、错误原因

CREATE DEFINER=`root`@`localhost` PROCEDURE `new_procedure`()
BEGIN
  set @a=101;
  while @a<2000 do
  set @b = rand_string(10);
  set @c=1;
  insert into example1 values(@a,@b,@c);
  set @[email protected]+1;
  if(@a%2=0)
     then
     set @c=0;
     end if;
  end while;
END

该存储过程没有用到参数,故调用时不需要加参数

3、解决办法

call new_procedure;
时间: 2024-10-10 04:49:25

Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got的相关文章

Error Code: 1318. Incorrect number of arguments for PROCEDURE company.new_procedure; expected 2, got

1.错误描述 20:27:34 call new_procedure(20150112) Error Code: 1318. Incorrect number of arguments for PROCEDURE company.new_procedure; expected 2, got 1 0.000 sec 2.错误原因 CREATE DEFINER=`root`@`localhost` PROCEDURE `new_procedure`(in `departId` int,out `nu

Error Code 1318 Incorrect number of arguments for PROCEDUR

1.错误描述 13:58:20 call new_procedure('2000','zhangsan') Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got 2 0.000 sec 2.错误原因 CREATE DEFINER=`root`@`localhost` PROCEDURE `new_procedure`() BEGIN set @a=1

Error Code: 1366 - Incorrect string value: &#39;***&#39; for *** row 1

今天处理一个报障问题,执行mysql更新脚本时报错: Error Code: 1366 - Incorrect string value: '\xB3\xAC\xCA\xD0\xBB\xDD...' for column 'ChangecdtionName' at row 1 反复分析,查找网络上相似错误的解决办法,找不到好的方法. 知道这是编码问题,报的错误:1.查看了mysql数据库的编码为utf-8 2.查看了centos系统的编码为:LANG=zh_CN.UTF-8 这奇怪了,都是utf

简单记录一次ORA-00600: internal error code, arguments: [4194]

接上一篇,在搞定SCN问题后,又遇到ORA-600[4194]/[4193]报错. 故障现象: OPEN数据库时报错:ORA-00600: internal error code, arguments: [4194], [], [], [], [], [], [], [] 4193:表示undo和redo不一致(Arg [a] Undo record seq number,Arg [b] Redo record seq number ): 4194:表示也是undo和redo不一致(Arg [a

ORA-00600: internal error code, arguments: [kcblasm_1], [103], [], [], [], [], [], []

一ORACLE 10.2.0.5.0 标准版的数据库的告警日志出现ORA-00600错误,具体错误信息如下所示 Errors in file /u01/app/oracle/admin/SCM2/bdump/scm2_s003_20333.trc: ORA-00600: internal error code, arguments: [kcblasm_1], [103], [], [], [], [], [], [] Wed Oct 21 09:22:02 CST 2015 Errors in

ORA-00600: internal error code, arguments: [2662], [0], [1106971], [0], [1107731], [12583040]

今天是2014-06-06,在进行数据库恢复的时候出现了一个久违的ora-600 [2662]错误.特整理例如以下: 问题描写叙述: system及数据文件误删,採用恢复数据文件的方式将数据库恢复到開始状态,数据库为非归档模式. 在alter database open resetlog打开数据库的时候提示ora-600 [2662]错误.信息例如以下: SQL> col member for a80 SQL> select group#,status,member from v$logfil

azure云 ORA-00600: internal error code, arguments问题解决

1,alert日志报错如下 Tue Feb 23 09:43:37 2016 Errors in file /oracle/app/oracle/diag/rdbms/powerdes/powerdes/trace/powerdes_dbw0_49724.trc (incident=87281): ORA-00600: internal error code, arguments: [1433], [60], [], [], [], [], [], [], [], [], [], [] Inci

ORA-00600: internal error code, arguments: [18062], [], [], [], [], [], [], []

 UPDATE GLOBAL_NAME SET GLOBAL_NAME = '';注意:生产环境不要随便执行哦,特别是像我这种小白! 如果把GLOBAL_NAME 修改为空的,或者存取GLOBAL_NAME的数据块发生损坏就会报[18062]的错误,如下 SQL> startup ORACLE instance started. Total System Global Area 422670336 bytes Fixed Size 1344616 bytes Variable Size 31

ORA-00600: internal error code, arguments: [4193]问题解决

操作环境 SuSE+Oracle11gR2 问题现象 单板宕机自动重启后,ORACLE运行不正常,主要表现如下: 1.执行shutdown immedate停止数据库时,提示ORA-00600: internal error code, arguments: [4193],[],[] 2.压测性能时,oracle总是无缘无故关闭 问题分析 发现问题后首先查看告警日志<find $ORACLE_BASE -name "alert*.log"> 1.查看告警日志,发现日志中有O