![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
xianyongonly
这个作者很懒,什么都没留下…
展开
-
mysql having介绍
在介绍GROUP BY 和 HAVING 子句前,我们必需先讲讲sql语言中一种特殊的函数:聚合函数, 例如SUM, COUNT, MAX, AVG等。这些函数和其它函数的根本区别就是它们一般作用在多条记录上。 SELECT SUM(population) FROM bbc 这里的SUM作用在所有返回记录的population字段上,结果就是该查询只返回一个结果,即所有 国家的总人...原创 2013-04-14 21:53:49 · 95 阅读 · 0 评论 -
mysql查询 一天 一周 一个月的数据
查询一天: [code="java"]select * from table where to_days(column_time) = to_days(now()); select * from table where date(column_time) = curdate();[/code] 查询一周: [code="java"]select * from table where...原创 2013-04-26 18:33:35 · 132 阅读 · 0 评论 -
The reference to entity "characterEncoding" must end with the ';' delimiter
数据源配置时加上编码转换格式后出问题了: [quote]The reference to entity "characterEncoding" must end with the ';' delimiter[/quote] 这个错误就是 context.xml中设置数据源链接URL的问题 [code="java"] url jdbc:mysql://localhos...原创 2013-12-11 13:42:59 · 140 阅读 · 0 评论 -
could not open single-table tablespace file
[size=large]window下免安装版mysql启动报如下错误[/size] [code="java"]2014-02-11 16:20:27 8984 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace minblog/tal_advertisement uses...2014-02-11 16:35:15 · 935 阅读 · 0 评论