How to call stored procedure on Laravel?

前端 未结 2 2046
余生分开走
余生分开走 2021-02-13 20:16

Error comes when i run update stored procedure in laravel5 like this..

QueryException in Connection.php line 620: SQLSTATE[42000]: Syntax e

相关标签:
2条回答
  • 2021-02-13 20:51

    Try this one,

    DB::statement('call sp_clientupdate("108", "Sandeep","0999999999","","","sandeep@gmail.com","","","","","","",)');
    

    It works perfectly.

    0 讨论(0)
  • 2021-02-13 21:02

    You change.

    return DB::select('call sp_clientupdate("108", "Sandeep","0999999999","","","sandeep@gmail.com","","","","","","",)');
    

    Try it's working perfectly....

    0 讨论(0)
提交回复
热议问题