0
這是可能在MySQL ...MySQL的過程調用另一個過程
我已經一個PROC名爲 「doc_init」(inits一個文檔表)
我已經叫另一個PROC 「doc_xxx_init」(inits的doc_xxx表)
我需要調用doc_xxx_init,然後在那裏它必須做的第一件事是調用doc_init「call doc_init(a,b,c)」,它將返回一行。我的問題是:如何存儲該行,以便在doc_xxx_init中可以訪問某些列以進行剩餘的處理?在Oracle我會做這樣的事情...
create or replace procedure doc_xxx_init....
tempRow doc%rowtype;
begin
tempRow := doc_init(a,b,c);
/*then from here on I could access that row like tempRow.id, or tempRow.anyColumn*/
我見過很多的如何從另一個調用一個過程,而不是如何存儲結果,正如我需要的例子。