随笔分类 - 数据库
摘要:mysql提供了两个函数: 如果要查询当天的订单的记录: [plain] select count(*) from b_order Where date_format(from_unixtime(create_time),'%Y-%m-%d') = date_format(now(),'%Y-%m-
阅读全文
摘要:select * from tablename group by name;如果是select * from tablename group by name,age;那么查询的是满足name和age都不重复的记录。
阅读全文
摘要:查出来的时间格式为2016-04-26 00:00:00这种 那么以该时间戳为条件查询也不在话下,如
阅读全文

浙公网安备 33010602011771号