【发布时间】:2016-03-27 08:33:36
【问题描述】:
在 localhost 中一切正常,但上传到 Cpanel 后会抛出类似的错误
查询如下:
$general_product_report = DB::select('SELECT X.Product_ID,X.Product_Name,X.Product_Description,X.Count_StockIN,IFNULL(Y.Count_StockOut,0) Count_StockOut,(X.Count_StockIN-IFNULL(Y.Count_StockOut,0)) Balance FROM ( SELECT M.product_ID,M.Product_Name,M.Product_Description, SUM(Product_Count) AS Count_StockIN from (SELECT A.*,B.Product_Name,B.Product_Description FROM `stock_in` A, `products` B where A.Product_ID=B.Product_ID )M group by Product_ID,Product_Name,M.Product_Description ) X LEFT JOIN ( SELECT product_ID, SUM(Product_Count) AS Count_StockOUT from `stock_Out`group by Product_ID ) Y On X.Product_ID=Y.Product_ID');
【问题讨论】:
标签: php mysql laravel-4 composer-php