有个数据库,有一个表单在表单上有个dbgird,请问用什么查询语句能实现同时符合三个条件的记录并在dbgird上显示出来? 我是新手请不要见笑!!!!!
解决方案 »
- delphi封装类到dll中,c#可以很方便的使用吗?
- <<<<<<<<<<急!急!急!>>>>>>>>>>>>>只要解决,再加分!
- 我想学 DELPHI 有没有人带徒弟呀:)
- 如何将FASTREPORT中的报表导出到EXCEL
- 为什么前一段时间编的程序,现在不能跟踪调试了,设断点一运行就变为x.
- 打包BDE的问题,急!!!!!!!!!!!!!!!
- TClientDataSet的Filter问题
- 怎样用程序实现在“发送到”的右键菜单的子菜单增加内容 等3个问题答者50好的多加
- VC高手或用过installshield的兄弟帮帮忙,春节前要交的,可不想欠着债过年呀!
- 谁能给我--delphi5企业级解决方案及应用剖析--的配套代码!!
- TClientDataSet的问题!
- 紧急求救!我用TIdSMTP.send(TIdMessage)发送的邮件不能显示空格啊,如何解决啊??急。
表TABLE语句(ABC之间为并且关系) select * from table where A and B and c
语句(ABC之间为或者关系) select * from table where A or B or c
语句(ABC之间为并且、或者关系) select * from table where A and (B or c)
加一个datasource
query1.close;
query1.sql.clear;
sql.text:='select * from xx where xxx=xx and ...=... and ***=**';
query1.open;
with query1 do
begin
clear;
sql.add('select * form tablename where zdname1=value1 and zdname2=value2');
sql.add('and zdname3=value3');
open;
end;
begin
....
end;