在BCB中,实现“模糊”查询的 SQL 语句怎么样写!!!!????

笨魚 2001-11-23 04:11:13
Form1->ADOQuery1->Close();
Form1->ADOQuery1->SQL->Clear();
Form1->ADOQuery1->SQL->Add("select * from hq where 关键字=:strKey");
Form1->ADOQuery1->Parameters->ParamValues["strKey"]=Edit1->Text.Trim();
Form1->ADOQuery1->Open();

...全文
50 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Tone_zrt 2001-11-23
  • 打赏
  • 举报
回复
只要按照标准的SQL语句写就可以。有帮助请加分。
txh0768 2001-11-23
  • 打赏
  • 举报
回复
Query1->SQL->Add("select * from hltuser where name like '%" + Trim(Edit1->Text)+"%'")
txh0768 2001-11-23
  • 打赏
  • 举报
回复
Query1->SQL->Add("select * from hltuser where name like '%" + Trim(Edit1->Text)+"%'")

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧