Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Can I do that because it call from function if i use a normal form such as xxx() in mysql? please show me how to do it,thx.
In SQL Server it is plain vanilla exec proc statement, here is sql server syntax
exec proc
create procedure prYourProc as -- exec other proc exec prSomeOtherProc -- to get return value declare @var int exec @var = prSomeOtherProc
Add a comment
PROCEDURE 1
DROP PROCEDURE IF EXISTS Proc1; CREATE PROCEDURE Proc1() BEGIN CALL Proc2(); END
PROCEDURE 2
DROP PROCEDURE IF EXISTS Proc2; CREATE PROCEDURE Proc2() BEGIN SELECT ColumnName FROM table2; END
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.