简体   繁体   中英

Call stored procedure from view

There are multiple threads for this but none of them explain exactly that how we can call stored procedure from view.My basic requirement is to show data from multiple dynamic tables in view IN mysql.

user_date_1
user_date_2
user_date_3
user_date_n

Please explain .

look at this thread: How to call Stored Procedure in a View?

You need to use a function that calls the stored procedure. After that you can call the function from within your query/view.

some extra info on the restrictions of views: http://dev.mysql.com/doc/refman/5.1/en/view-restrictions.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM