Hello, how am I trying to perform a process stored in my sql database to add to my table Clientes
This is the stored process that I am using:
CREATE PROCEDURE agregarClientes(Codigo int, Nombre varchar(15), Apellido varchar(30), Direccion varchar(50), Fecha_Nacimiento Date, Tipo int, Foto varchar(55), Fecha_Ingreso Date, Ganancia double)
INSERT INTO empleados VALUES (Nombre,Apellido,Direccion,Fecha_Nacimiento,Tipo,Foto,Fecha_Ingreso,Ganancia)
And this is the part of how I send it to call:
call agregarClientes("ejemplo","ejemplo","Conocido","1991-03-30","1","ejemplo","1-04-2018","2500")
But I get the following error when executing the query:
1318 - Incorrect number of arguments for PROCEDURE add Customers; expected 9, got 8
My id field is autoincrementable and as I have usually used it, I do not need to enter the part of the parameters when I call it