I created a procedure to create a new record in tables through an inline form. Right now there's an ID field that I need to fill out in order to add the record. How can I make this value automatic instead of having to enter it manually?
This is my code for the form (I have 2 tables - one for People and one for Email Addresses):
DROP PROCEDURE IF EXISTS sp_DBR_master_create
$$
CREATE PROCEDURE sp_DBR_master_create(
inID int,
inFirst varchar(255),
inLast varchar(255),
inEmail varchar(255)
)
BEGIN
INSERT INTO People (People.FirstName, People.LastName) VALUES (inFirst, inLast);
INSERT INTO Email (Email.PeopleID, Email.Email) VALUES (inID, inEmail);
select 'dbr.refresh', 0;
END $$