摘要: 基本查询 1、select * from department 2、distinct 去除重复行 top 5 top 10 percent 3、聚合函数 --avg()平均值 --sum求和 --count求行数 --min求最小值 --max求最大值 4、带条件查询 select 列 from 表 where 条件 between...and... in (1,3,5) lie = 1 or lie =3 模糊查询 like %代表任意多字符 _代表任意单个字符[0-9][a-Z]不区分大小写 [acd] 匹配范围内的单个字符 5、查找null值 is null is not... 阅读全文
posted @ 2012-08-23 19:25 life steven 阅读(170) 评论(0) 推荐(0) 编辑