摘要: 列别名不能用于where子句动态sql,某一列值作为子查询的表名,或者某一列值为一个sql语句,直接查询结果内存表按日期分组selectcount(*),substr(t.date,1,10)fromtabletwheret.datelike'2010-03%'groupbysubstr(t.dat... 阅读全文
posted @ 2015-05-15 17:55 光闪 阅读(122) 评论(0) 推荐(0) 编辑