I have a form which contains a lot of elements, my DB guy has generated an SP and now i need to call that stored procedure. My form has twenty elements, when i click on submit the data must be saved in database. I know how to do this on insert query, but how to call an SP and perform this operation.
There are 10 tables where the data is going to get saved.
I’ve never used stored procedures in MySQL, but it’s no different from “plain” SQL queries, except you use
CALLas the query keyword.Instead of:
you do:
(this is assuming your stored procedure is called
function_nameand takes 2 string arguments and a numeric argument.