摘要: 列名为主键,count(列名)会比count(1)快。 列名不为主键,count(1)会比count(列名)快。 如果表多个列并且没有主键,则count(1)的执行效率优于count(*)。 如果有主键,则count主键)的执行效率是最优的。 如果表只有一个字段,则count(*)最优。 count 阅读全文
posted @ 2021-06-02 23:46 介个车车烫屁股 阅读(206) 评论(0) 推荐(0)
摘要: datetime是一个关于时间的库,其中包含date、time、datetime、timedelta等类对象。 date类 from datetime import date thedate = date(2020,1,1) print(thedate) """ 返回结果: 2020-01-01 t 阅读全文
posted @ 2021-06-02 23:36 介个车车烫屁股 阅读(57) 评论(0) 推荐(0)