$sql = “select a.,b.,c* from (tableA a LEFT JOIN table b ON a.字段=b.字段) LEFT JOIN tableC c ON c.字段=b.字段或者a.字段 where 条件”;
SELECT COUNT(*),FROM_UNIXTIME(dt) FROM sub_date GROUP BY FROM_UNIXTIME(dt, ‘%Y-%m-%d %H’)
SELECT COUNT(*),FROM_UNIXTIME(dt) FROM sub_date GROUP BY FROM_UNIXTIME(dt, ‘%Y-%m-%d %H:%i’)
SELECT COUNT(*),FROM_UNIXTIME(dt) FROM sub_date GROUP BY FROM_UNIXTIME(dt, ‘%Y-%m-%d’)
DELECT t1,t2,t3 FROM t1,t2,t3 WHERE t1.id=t2.id and t1.id=t3.id and t2.id=t3.id and 条件
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号