How the laravel query constructor writes the following SQL statement

select * from i_program_layout
where not (start_at > "2018-10-25 14:05:35" or end_at < "2018-10-22 14:05:36") and b_zone_id=2
Sep.09,2021

you can use whereRaw, and b_zone_id=2 should be put in front. This is common sense


where not () what does this mean? For the first time.
is that what the conversion is like:

select * from i_program_layout
where start_at <= '2018-10-25 14:05:35' and end_at >= '2018-10-22 14:05:36' and b_zone_id=2

if you really convert it to the above, can you kill this sql writer?

Menu