sql语句
Posted ready_dream
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql语句相关的知识,希望对你有一定的参考价值。
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语句的主要内容,如果未能解决你的问题,请参考以下文章