Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to concat in where clause like laravel query builder

$query = DB::table('mbo_party')->where(DB::raw("CONCAT(first,' ',last)"), 'LIKE', '%' . $party_name . '%')->first();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #concat #clause #laravel #query #builder
ADD COMMENT
Topic
Name
5+3 =