Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to pass data table into mysql stored procedure?
Posted
Comments
Maciej Los 5-Aug-15 4:48am    
What have you tried? Where are you stuck?
amnk.info 5-Aug-15 4:53am    
I have two tables. header and detail. i need to insert both table same time. detail table have many records
Maciej Los 5-Aug-15 5:04am    
You did not provide any useful information to help you. What have you tried? Where are you stuck?

As i mentioned in past answer[^], MySQL does not support table data type. You have to pass array of data into stored procedure


Please, read this: Passing Arrays to MySQL Stored Routines[^]


It might be helpfull too:

Pass array to MySQL stored routine[^]

How to pass an Integer Array to a Stored Procedure in mysql?[^]

A.4 MySQL 5.6 FAQ: Stored Procedures and Functions[^]

 
Share this answer
 
v2

Stored procedures in MySQL can receive any parameter of valid data type - table is not a valid data type...
https://dev.mysql.com/doc/refman/5.0/en/data-types.html[^]

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900