Click here to Skip to main content
15,908,013 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
MS SQL Server has a TABLE data type which can be used in stored procedures. Is there table data type in MySQL?
Posted
Comments
Maciej Los 5-Aug-15 2:56am    
You mean MS SQL Server can use a table as a variable...
amnk.info 5-Aug-15 3:01am    
yes. we can use MS SQL table data types to insert multiple rows in one time.
example
- one record to header table and two records to detail table in one time(detail table have table data type)

1 solution

As far as i know MySQL does not support such as functionality.


Instead of table variable, you can use temporary table[^].

 
Share this answer
 
Comments
amnk.info 5-Aug-15 3:11am    
do you know normally how to insert multiple rows in same time in mysql? i'm using mysql stored procedures with asp.net c#.
Maciej Los 5-Aug-15 3:14am    

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