vendredi 30 septembre 2016

Running raw sql in php laravel

I am trying to call a stored procedure which I have ran in the workbench and works fine, however I am trying to call this in PHP code and it seems to return an empty array. I have tried many other methods that hang off the DB class unprepared and raw returns a boolean value. I have also tried using string concatenation to construct the query as before I was binding, although this made no difference but I thought I would try it anyway.

DB::select('call get_oids(\'' . $sysInfo . '\');');



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2dwgIr5
via IFTTT

Aucun commentaire:

Enregistrer un commentaire