as part of my project requirement we are migrating procedures from mssql to mysql
below is the code in mssql
Expand|Select|Wrap|Line Numbers
- CREATE PROCEDURE TABLE_DEPEND_INSERT_ORDER
- AS
- CREATE TABLE #TABLE_DEPEND_ORDER_SUMMARY (
- TABLE_NAME varchar(128),
- SORT_ORDER int
- )
- INSERT INTO #TABLE_DEPEND_ORDER_SUMMARY EXEC TABLE_DEPEND_ORDER 'F'
- SELECT TABLE_NAME FROM #TABLE_DEPEND_ORDER_SUMMARY ORDER BY SORT_ORDER DESC;
please do the need full.
Regards,
Vijaya