I have a very simple question; I have a query running perfectly on sql server and I want to run this query using laravel framework, here is the query:
DECLARE @countries AS countryList;
INSERT INTO @countries SELECT countries.id FROM countries where countries.id in (1,2,3,4,9,11,14);
EXEC sp_positionofCourtCasesofLoanDefaultA @countries
in Laravel this is returning 'true' always
$result = DB::statement('DECLARE @countries AS countryList; INSERT INTO @countries SELECT countries.id FROM countries where countries.id in (' . $countries . ');
EXEC sp_positionofCourtCasesofLoanDefaultA @countries');
dd($result);
please help.