2016-12-20 1 views
0

많은 시간을 보았지만 디버깅되었지만 지금 문제가 어디인지 알 수 없습니까? 모든 종류의 도움을 주셨습니다.SQLSTATE [42S22] : 열을 찾을 수 없음 : 1054 알 수없는 열 'adjusted_amount'in 'field list'

오류 : 내 컨트롤러 코드에서

QueryException in Connection.php line 662: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'adjusted_amount' in 'field list' (SQL: update tbl_bill_collection set dueamount = 0, adjusted_amount = 100, adjusted_by = 5302, adjusted_date = 2016-12-20 21:19:31 where billno = 7777)

:

 DB::table('bill_collection') 
     ->where('billno', 555) 
     ->update([ 
      'dueamount'  => $request->input('dueamount'), 
      'adjusted_amount' => $request->input('adjustment'), 
      'adjusted_by' => Auth::User()->id, 
      'adjusted_date' => date('Y-m-d H:i:s'), 
     ]); 

내 데이터베이스 테이블 열 이미지 아래 :

enter image description here

+0

올바른 ** 데이터베이스 **를보고 계십니까? – Mjh

답변

관련 문제