标题:【新手求助】两段查询命令分析 不知道错哪了?
取消只看楼主
有时寂寞
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2008-8-24
 问题点数:0 回复次数:0 
【新手求助】两段查询命令分析 不知道错哪了?
1)此查询命令运行后 priv_more表自动删除了,不知道为什么    若不用 drop table priv_more  则显示语法错误?
drop table priv_more select hm, count(hm) as expr1 into priv_more from tt where fx=1 or fx = 2 or (fx>432 and fx<443) group by hm;
having (count(hm) > 1) select * from priv_more select id,hm,fx,je from tt where hm in (select hm from priv_more)


2)此命令并没有检查出错误,但查询的时候容易卡死,40万的数据 查半天也不会走。
select * from tt,tt1 where tt.fx=tt1.fx and tt.hm=tt1.hm and tt.je<>tt1.je and tt.je>0 and tt1.je>0


以上两个查询命令 求教高手帮忙解释下,谢谢了
搜索更多相关主题的帖子: 命令 查询 
2008-08-27 12:05



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-230074-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.399122 second(s), 10 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved