| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 403 人关注过本帖
标题:循环问题
取消只看楼主 加入收藏
s6gy
Rank: 1
等 级:新手上路
帖 子:330
专家分:0
注 册:2006-10-26
收藏
 问题点数:0 回复次数:1 
循环问题
我循环一个表里的类容 如果这个表里有相同的我就不只循环一次
例如表里有 二条 科技项目
但是显示的时候只让它显示一条科技项目怎么处理谢谢
条件怎么加啊
2007-06-29 10:06
s6gy
Rank: 1
等 级:新手上路
帖 子:330
专家分:0
注 册:2006-10-26
收藏
得分:0 

现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有1 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有1 科技项目 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有1 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有
1 科技项目 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有1 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有1 科技项目 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有1 现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有现在我的查询条件是这样的
<%

Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select item_name from sq_jx) order by id desc"

rs.Open sql,conn,1,3

if not rs.eof then
do while not rs.eof
%>.........
现在item_name 对应的内容有
1 科技项目 2 科技项目3科技项目4 科技项目 5 软件开发 6 软件开发.......

现在只要循环 在显示的时候只看到一个 一条 科技项目 一条 软件开发
具体怎么写请指教撒 帮忙啊 详细点撒谢谢

2007-06-29 10:46
快速回复:循环问题
数据加载中...
 
   



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

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