- 博客(7)
- 收藏
- 关注
转载 sql中having用法
from: http://zhidao.baidu.com/question/17022808.html?qbl=relate_question_1where和having其实后面都是跟条件。区别在于:在他们后面的条件里如果有count之类的聚合函数的时候只能使用having而不能使用where。这个是用在聚合函数的用法。当我们在用聚合函数的时候,一般都要用到GROUP B
2014-03-01 14:46:03
754
转载 sql查询语句UNION ALL
from : http://zhidao.baidu.com/question/292405442.html?qbl=relate_question_0union all,解释为联合所有Union解释为联合union或者Union all实现把前后两个select集合的数据联合起来,组成一个结果集查询输出。这就要求联合前后的结果集,需要分别有相同的输出字段的数目,并且对应的
2014-03-01 14:43:52
647
转载 SQL中all,any,some的意思
SQL中all,any,some的意思转自:http://hi.baidu.com/magus163/item/dca30d0a2d1591dcdce5b04bcreate table #A(id int)goinsert into #A s(1)insert into #A s(2)insert into #A s(3)insert
2014-03-01 14:42:00
544
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人