I have a stored procedure that returns some data from a table. I want to use that data in another query by calling the stored procedure. this is what I've tried so far:
SELECT T.ID, T.USER_ID, T.CONTENT, T.POSTAGE
FROM post as T
WHERE T.USER_ID (CALL MyFollowers());
I get a syntax error on CALL
. so I guessed I cant use return value of a stored procedure on IN
or EXISTS
keyword. is there any other way to do this?