摘要: 1、执行顺序 语句模板: (8)SELECT (9)DISTINCT (11)<Top Num> <select list> (1)FROM [left_table] (3)<join_type> JOIN <right_table> (2)ON <join_condition> (4)WHERE 阅读全文
posted @ 2017-02-14 11:47 鲜橙 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1、按小时统计的语句 select concat(date_format(gmt_create, "%Y-%m-%d %k:00~"), hour(gmt_create)+1, ":00") as 'time', count(*) as num from t_order where gmt_crea 阅读全文
posted @ 2017-02-14 11:43 鲜橙 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 一、使用 1、使用maven创建本地Java项目 mvn archetype:generate -DgroupId=com.cxc -DartifactId=HelloWorld -DarchetypeArtifactId=maven-archetype-quickstart -Dinteracti 阅读全文
posted @ 2017-02-14 11:32 鲜橙 阅读(200) 评论(0) 推荐(0) 编辑