码迷,mamicode.com
首页 > 数据库 > 详细

sql语句

时间:2016-03-30 12:53:30      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

 

1,sql小例子

SELECT c.coupon_name,c.coupon_id,c.coupon_value,c.camp_condition,c.issue_amount,c.remain_amount,s.store_name,
c.local_coupon_condition,from_unixtime(c.start_time,‘%Y-%m-%d %H:%i:%s‘) as starttime,
c.local_coupon_condition,from_unixtime(c.end_time,‘%Y-%m-%d %H:%i:%s‘) as endtime
FROM aumall.br_coupon as c left join br_store as s on c.store_id = s.store_id left join br_region r on s.region_id = r.region_id
where s.region_id = 36883;

 

sql语句

标签:

原文地址:http://www.cnblogs.com/xiaoxiaomengxiangjia/p/5336564.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!