zoukankan      html  css  js  c++  java
  • ORM之filter参数

    'exact': '= %s',     精确等于   
     
    'iexact': 'LIKE %s',   精确等于 忽略大小写 ilike 'aaa' 
     
    'contains': 'LIKE BINARY %s',   包含
     
    'icontains': 'LIKE %s',     包含,忽略大小写
     
    'regex': 'REGEXP BINARY %s',  正则
     
    'iregex': 'REGEXP %s',  正则忽略大小写
     
    'gt': '> %s',   大于
     
    'gte': '>= %s',  大于等于
     
    'lt': '< %s',   小于
     
    'lte': '<= %s',  小于等于
     
    'startswith': 'LIKE BINARY %s',   以...开头
     
    'endswith': 'LIKE BINARY %s',以...结尾 
    'istartswith': 'LIKE %s', 以...开头 ,忽略大小写 

    'iendswith': 'LIKE %s',以...结尾 ,忽略大小写

    __range 在...范围内
    __year 日期字段的年份
    __month 日期字段的月份
    __day 日期字段的日
    __isnull=True/False
    __in 存在于一个list范围内
    
    
  • 相关阅读:
    函数 out 传值 分割
    函数
    特殊集合
    集合
    数组

    穷举
    循环
    mac 软件安装
    实用信息查询接口
  • 原文地址:https://www.cnblogs.com/liusouthern/p/9363100.html
Copyright © 2011-2022 走看看