“Panggil prosedur tersimpan di Laravel” Kode Jawaban

cara menggunakan prosedur tersimpan di Laravel

DB::select('exec my_stored_procedure("Param1", "param2",..)');
or

DB::select('exec my_stored_procedure(?,?,..)',array($Param1,$param2));
Try this for without parameters

DB::select('EXEC my_stored_procedure')
xnimax

Prosedur tersimpan di Laravel

DB::connection("sqlsrv")->statement('exec Pro_Internal_Transfer_Note_post @mvoucherid='.$VMID);
Fantastic Fish

Panggil prosedur tersimpan di Laravel

Hi
I have something to ask

ADMIN_USER PROCEDURE HAVE THREE INPUT PARAMETER AND ONE OUTPUT PARAMETER
(INPUT PARAMETER) I_ADMIN_ID, I_PWD, I_CONN_IP
(OUTPUT PARAMETER) O_RET_CD

(PHP CODE)
DB::select('EXEC dbo.ADMIN_USER @I_ADMIN_ID = ?, @I_PWD = ?, @I_CONN_IP = ?',[$credentials['user_id'], $credentials['password'], $_SERVER['REMOTE_ADDR']]);

How can I get the output parameters passed?
Clever Crayfish

Jawaban yang mirip dengan “Panggil prosedur tersimpan di Laravel”

Pertanyaan yang mirip dengan “Panggil prosedur tersimpan di Laravel”

Lebih banyak jawaban terkait untuk “Panggil prosedur tersimpan di Laravel” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya