基本的过程 如下:
w_client.ClientDataset_TEL.active:=false; w_client.ClientDataset_TEL.Close;
w_client.SOCKETConnection1.AppServer.closedb;自己的函数 关闭连接
whereclause:='where 宿舍 like'+'"'+edit4.text+'%'+'"';
whereclause:=whereclause+' and'+' 寝室like '+'"'+edit1.text+'%'+'"';
sql:='select * from TEL_A ';
sql:=sql+whereclause+';';写查询语句
with w_client.ClientDataSet_TEL do
begin
commandtext:=sql; 用commandtext 来查询
Execute ;
if w_client.SOCKETConnection1.AppServer.Opendb then begin
Open;
active:=true;打开表
end;这个是具体的操作 你的sql 语句可以具体而言!!!
w_client.ClientDataset_TEL.active:=false; w_client.ClientDataset_TEL.Close;
w_client.SOCKETConnection1.AppServer.closedb;自己的函数 关闭连接
whereclause:='where 宿舍 like'+'"'+edit4.text+'%'+'"';
whereclause:=whereclause+' and'+' 寝室like '+'"'+edit1.text+'%'+'"';
sql:='select * from TEL_A ';
sql:=sql+whereclause+';';写查询语句
with w_client.ClientDataSet_TEL do
begin
commandtext:=sql; 用commandtext 来查询
Execute ;
if w_client.SOCKETConnection1.AppServer.Opendb then begin
Open;
active:=true;打开表
end;这个是具体的操作 你的sql 语句可以具体而言!!!
解决方案 »
- 怎样用send发送数据?老出错!
- 分组求和的问题
- 高分求助,关于获取网页数据
- 请问如何实现在软件里加上QQ临时对话功能.
- 一个关于远程访问ACCESS数据库的问题,在线等,很急.!!!!!!!!!
- 轻量级的IM工具。很小,但是文件传输方面的功能比较强大,速度也很不错。大家去试试看:)
- TRemoteDataModule在客户端连接时怎么知道现在连接的客户端的IP?
- QuickReport中数据列合计问题!!!!
- 毕业设计要交了!急啊!请问fastreport预览时,怎么没有“页面设置”菜单??
- 如何绘制wav、mp3等音频波形?有没有现成控件?
- Excel专家请进!(急)
- 想实现 ACDSEE 那种用鼠标拖图片、放大缩小用什么控件?(需要显示图片的控件)
在ADOConnection里的ConnectionString里设置好就行了