Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

orWhereRaw

$orders = DB::table('orders')
                ->whereRaw('price > IF(state = "TX", ?, 100)', [200])
                ->get();
 
PREVIOUS NEXT
Tagged: #orWhereRaw
ADD COMMENT
Topic
Name
2+6 =