CREATE PROCEDURE insert_team(
IN empnum INTEGER not null, IN FirstName VARCHAR(30) not null, IN LastName VARCHAR(50) not null, IN State VARCHAR(50) not null, IN Sport CHAR(20) ) BEGIN SQLIStatement insert_team = new SQLIStatement ( "INSERT INTO team (empnum, FirstName, LastName, State, Sport) VALUES ( ?,?,?,?,? ) "); insert_team.setParam (1, empnum); insert_team.setParam (2, FirstName); insert_team.setParam (3, LastName); insert_team.setParam (4, State); insert_team.setParam (5, Sport) ; insert_team.execute (); END COMMIT WORK ; |