我有一张结构如下的桌子:
==========================================
itemName minPrice maxPrice curPrice
==========================================
A 10 20 8
B 15 25 12
c 20 30 25
mysql就是这样
select * from Items where curPrice<minPrice
但是我想要在django中返回“A,B item name result”。你知道吗
我已经试过用过滤器,但没有成功。你知道吗
要将筛选器中的值与模型上的另一个字段进行比较,请使用^{} 对象:
相关问题 更多 >
编程相关推荐