SQLSTATE [42S22]없는 컬럼 : 1,054 알 열 'vpc_order_info'에서 'WHERE 절'(SQL :
select `sequa_transaction_id` as `vpc_transaction_no`, `merchant_order_id` as `vpc_order_info`, `date_created` as `yesterday`, `card_number` as `vpc_Card`, `amount` as `vpc_Amount`, `authorization_code` as `vpc_authorizeId` from `ipg_sentry_response` where `merchant_id` = 12136901 and `vpc_order_info` like %-% and `response_code` = 1 and `date_created` between 2016-03-22 and 2016-09-31)
열이 발견되지 않음 : 열이 laravel에 정의 1,054 에러에도
아래로 나는 열을 정의하지만이 오류 메시지를 받고 있습니다.
$col = array("sequa_transaction_id as vpc_transaction_no","merchant_order_id as vpc_order_info","date_created as yesterday","card_number as vpc_Card", "amount as vpc_Amount","authorization_code as vpc_authorizeId");
$records = DB::table('ipg_sentry_response')->select($col)
->where('merchant_id', '=', $vpc_Merchant)
->where('vpc_order_info' ,'like', "%-%")
->where('response_code', '=', '1')
->whereBetween('date_created', array($date,$date2))
//->whereBetween('date_created', array($date,$date2))
->get();
사람이? 내가 Laravel 버전 5.2을 사용하고 그것으로 나를 도와주세요 수 있습니다.
'알 수없는 열'vpc_order_info '는 테이블에 정의되지 않은 것을 의미합니다. – devpro
'merchant_order_id '가 테이블에 있는지 확인하십시오. 맞춤법 검사 – Digitlimit