如何将此sql代码转换为codeigniter?
SELECT *,sum(sales_total) as daily_report FROM `tbl_sales`,(select
sum(sales_total) as month from tbl_sales where date_format(sales_date,'%m') = '01') as totals where sales_date = '2018-01-18'
如何将此sql代码转换为codeigniter?
SELECT *,sum(sales_total) as daily_report FROM `tbl_sales`,(select
sum(sales_total) as month from tbl_sales where date_format(sales_date,'%m') = '01') as totals where sales_date = '2018-01-18'
1条答案
按热度按时间ix0qys7i1#