Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

concat in where clause laravel query builder

$query->orWhere(DB::raw("CONCAT(`nvp`, ' ', `vpv`)"), 'LIKE', "%".$this->searchNeedle."%");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #concat #clause #laravel #query #builder
ADD COMMENT
Topic
Name
5+2 =