标签:
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;
标签:
原文地址:http://www.cnblogs.com/xiaoxiaomengxiangjia/p/5336564.html