orm 对应 sql

1 sql中between 对应orm中 _ _range ceshi = xxx.objects.filter(pid=None, is_delete=False, create_time__range=['2023-01-03', '2022-01-05'])



select id,name from emp where id >= 3 and id <= 6;
select *  from emp where id between 3 and 6;
posted @ 2023-01-05 10:18  tslam  阅读(17)  评论(0编辑  收藏  举报