[英]How to call stored procedure in laravel5?
我是laravel5的新手。 我需要在我的應用程序中要求調用存儲過程。 所以我不知道怎么打電話以及在哪里打電話。 是調用存儲過程的正確方法。 請有人建議我。
就像
$Result = DB::select('CALL YourProcedure(?,?)',array($YourParameter,$YourParameter1));
$Result
可能是存儲過程的輸出
嘗試這個。 帶參數
DB::select('exec my_stored_procedure(?,?,..)',array($Param1,$param2));
沒有參數
DB::select('exec my_stored_procedure');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.