왜 laravel 쿼리 생성기를 사용해서 이 업데이트를 실행할 수 없습니까?
            
 
             
              
             
         
11월 26일 20일
평론
정답: 1
         0
        
          0
        
         
       
다음 코드를 실행합니다.$crm_code = "Omaewamoshindeiru"
DB::update("UPDATE death_invitation set active = false where crm_code = '?' and active = true and contract_type_id IN (13, 14, 20, 21)",[[$code]]);
다음 오류가 발생했습니다.Illuminate/Database/QueryException with message 'PHP Notice:  Array to string conversion in /var/www/html/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 575 (SQL:
 …
Open Full Question
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(왜 laravel 쿼리 생성기를 사용해서 이 업데이트를 실행할 수 없습니까?), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://dev.to/pcmagas/why-i-am-unable-to-perform-this-update-using-laravel-query-builder-216e
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
$crm_code = "Omaewamoshindeiru"
DB::update("UPDATE death_invitation set active = false where crm_code = '?' and active = true and contract_type_id IN (13, 14, 20, 21)",[[$code]]);
Illuminate/Database/QueryException with message 'PHP Notice:  Array to string conversion in /var/www/html/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 575 (SQL:Reference
이 문제에 관하여(왜 laravel 쿼리 생성기를 사용해서 이 업데이트를 실행할 수 없습니까?), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/pcmagas/why-i-am-unable-to-perform-this-update-using-laravel-query-builder-216e텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)