一佳一

记录像1+1一样简洁的代码

导航

2010年10月27日

摘要: --创建临时表with 临时表名 as(--整合查询(两个查询结果合并)--比如把父级和对应的子级查出select * from a where a.id =3unionselect * from a where a.kid = 3)--查询统计零时表select Sum(Famount) from 临时表名 阅读全文

posted @ 2010-10-27 10:20 一佳一 阅读(199) 评论(0) 推荐(1) 编辑