sql常用语句
摘要:
1、简单select select * from tablename where 1=1 2、当包含sum,count等聚合函数时需要加group by,其中group by包含的字段是除使用聚会函数外的所有字段 select field1,field2,sum(field3) tablename where 1=1 group by field1,field2 3、HAVING 子句对 GROU... 阅读全文
posted @ 2008-01-09 11:25 Jingnan 阅读(529) 评论(0) 推荐(0)