Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

QuerySet 字段查找参考


字段查找参考

所有字段查找关键字列表

关键字 描述
contains 包含短语
icontains 与 contains 相同,但不区分大小写
date 匹配日期
day 匹配日期(月份中的日期,1-31)(对于日期)
endswith 以...结尾
iendswith 与 endswidth 相同,但不区分大小写
exact 完全匹配
iexact 与 exact 相同,但不区分大小写
in 匹配其中一个值
isnull 匹配 NULL 值
gt 大于
gte 大于或等于
hour 匹配小时(对于日期时间)
lt 小于
lte 小于或等于
minute 匹配分钟(对于日期时间)
month 匹配月份(对于日期)
quarter 匹配一年中的季度(1-4)(对于日期)
range 匹配介于两者之间
regex 匹配正则表达式
iregex 与 regex 相同,但不区分大小写
second 匹配秒(对于日期时间)
startswith 以...开头
istartswith 与 startswith 相同,但不区分大小写
time 匹配时间(对于日期时间)
week 匹配星期数(1-53)(对于日期)
week_day 匹配星期几(1-7)1 是星期日
iso_week_day 匹配 ISO 8601 星期几(1-7)1 是星期一
year 匹配年份(对于日期)
iso_year 匹配 ISO 8601 年份(对于日期)

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.