摘要:
1.两表连查 共同点 都有id 一个id是int类型 一个id是nvarchar select a.name,sum(b.chengji) from a,b where a.id=b.id and a.name not in ('0',null)耗时:32秒经过csdn大神指点之后改善:select a.name,sum(b.chengji) from a,b where a.id=b.id and a.name <>'0' and a.name is not null耗时:32秒发现还是那么慢后来百度 google 研究表结构 发现 两表中的id类 阅读全文
posted @ 2011-06-21 21:44
一个土豆一棵青菜
阅读(231)
评论(0)
推荐(0)