例如表里有 二条 科技项目
但是显示的时候只让它显示一条科技项目怎么处理谢谢
条件怎么加啊
现在我的查询条件是这样的
<%
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 软件开发.......
现在只要循环 在显示的时候只看到一个 一条 科技项目 一条 软件开发
具体怎么写请指教撒 帮忙啊 详细点撒谢谢
[CODE]Call OpenDatabase()
sql="select item_name from jd_manager where item_name not in(select DISTINCT 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[/CODE]
DISTINCT 关键字可从 SELECT 语句的结果中除去重复的行。如果没有指定 DISTINCT,那么将返回所有行,包括重复的行。例如,如果在 titleauthor 中选择所有作者 ID 时未使用 DISTINCT,那么将会返回下列行(其中包括一些重复的行).
[此贴子已经被作者于2007-6-29 11:02:02编辑过]