随笔分类 -  数据库

摘要:关键词:hour(time)获取小时,date(time)获取当天时间,curdate()获取当天时间 select * from b_get_integral where hour(get_time)=18 and date(get_time)=date(curdate()) 阅读全文
posted @ 2018-03-16 16:48 灬花生酱 阅读(231) 评论(0) 推荐(0)
摘要:select DISTINCT(DATE_FORMAT(u_dynamic_time,'%Y年%m月')) as photo_time,group_concat(u_dynamic_picture) as photo_des from b_user_dynamic where user_id =2 阅读全文
posted @ 2017-07-06 11:01 灬花生酱 阅读(197) 评论(0) 推荐(0)
摘要:插入数据时用参数进行判断,插入哪条数据(type也是传入参数) 阅读全文
posted @ 2017-06-23 11:49 灬花生酱 阅读(305) 评论(0) 推荐(0)
摘要:插入模拟测试数据 address longitude latitude 1 115.966291 28.684432 115.959871 28.669313 115.930901 28.700844 120.251551 30.165675 115.906261 28.666856 115.873 阅读全文
posted @ 2017-06-23 09:45 灬花生酱 阅读(387) 评论(0) 推荐(0)