| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 658 人关注过本帖
标题:如何读取一条记录显示数据库中所有跟上一条记录相同的字段
只看楼主 加入收藏
wutengchu
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2011-10-26
结帖率:100%
收藏
 问题点数:0 回复次数:0 
如何读取一条记录显示数据库中所有跟上一条记录相同的字段
表名字chenzhu
字段一:ID
字段二:smalllocation
字段三:smalllocationabc

id 1 smalllocation 成都  smalllocationabc  北京
id 2 smalllocation 西安  smalllocationabc  昆明
id 3 smalllocation 成都  smalllocationabc  上海
id 4 smalllocation 北京  smalllocationabc  昆明
id 5 smalllocation 成都  smalllocationabc  昆明
id 6 smalllocation 上海  smalllocationabc  成都
id 7 smalllocation 成都  smalllocationabc  昆明
id 8 smalllocation 上海  smalllocationabc  成都
id 9 smalllocation 成都  smalllocationabc  上海
id 10 smalllocation 成都  smalllocationabc  昆明

现在我要读取数据2条数据
这2条数据根据smalllocation和smalllocationabc来判断最多的数据读取
2条 读取出来的应该是 成都-昆明 、成都-上海.

谢谢各位师傅帮我下
搜索更多相关主题的帖子: 成都 昆明 
2011-10-26 20:28
快速回复:如何读取一条记录显示数据库中所有跟上一条记录相同的字段
数据加载中...
 
   



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

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