| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 750 人关注过本帖
标题:[求助]表查询的问题
只看楼主 加入收藏
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
 问题点数:0 回复次数:4 
[求助]表查询的问题
图里查询按钮里的代码要怎么写呢。
dsbWrpfc.rar (4.02 KB) [求助]表查询的问题

搜索更多相关主题的帖子: 查询 
2005-05-24 10:52
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
帮帮忙啊。各位老大

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-05-25 11:19
zousoft
Rank: 1
等 级:新手上路
帖 子:44
专家分:0
注 册:2005-3-22
收藏
得分:0 
把command命令写成: "select * from 表名 where class='" + textBox1.Text + "'  and  classTime='" + textBox2.Text +"'" 就可以了!

2005-07-02 23:10
tianhe
Rank: 1
等 级:新手上路
帖 子:86
专家分:0
注 册:2005-3-17
收藏
得分:0 
也可以这样写:
"select * from TableName where class=' "+textBox1.Text+" '   or    classTime=' "textBox2.Text+ " ' "
这样写应该更容易查询到你想要的结果.

-------------------------------------------- 朴素,清醒
2005-07-03 18:49
goodgoodstudy
Rank: 2
等 级:新手上路
威 望:3
帖 子:111
专家分:0
注 册:2005-4-6
收藏
得分:0 
你进入了死胡同了,用textBox来填写日期,真不怕死.用dateTimePicker省事多了.
多想想就可以实现时间查询了.

2005-08-01 23:34
快速回复:[求助]表查询的问题
数据加载中...
 
   



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

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