Database Functions官方文件連結(都是資料庫內建函式,速度較快) 阿新 • • 發佈:2018-11-02 https://docs.djangoproject.com/en/2.1/ref/models/database-functions/ Contents Database Functions Comparison and conversion functions Cast Coalesce Greatest Least Date functions Extract DateField extracts DateTimeField extracts Now Trunc DateField truncation DateTimeField truncation TimeField truncation Text functions Chr Concat Left Length Lower LPad LTrim Ord Repeat Replace Right RPad RTrim StrIndex Substr Trim Upper Window functions CumeDist DenseRank FirstValue Lag LastValue Lead NthValue Ntile PercentRank Rank RowNumber