组合查询的优化,谢谢

happymingnan 2003-10-15 11:41:21
sql = "select * from book where bname like '%" & txtbname.Text & "%' and bauthor like '%" & txtauthor.Text & "%' and bpublish like '%" & txtpublish.Text & "%' and bdescription like '%" & txtdescription.Text & "%' order by bookid desc"

组合查询,有是四个组合条件,这样写是不是效率比较低,我该怎么优化一下呢?
谢谢。
...全文
28 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
leon168 2003-10-16
  • 打赏
  • 举报
回复
up

精英论坛

http://bbs.osboard.com

(极其需要你的加入,大家有空多来坐坐)
happymingnan 2003-10-16
  • 打赏
  • 举报
回复
up
happymingnan 2003-10-16
  • 打赏
  • 举报
回复
有没有人肯帮我。
happymingnan 2003-10-16
  • 打赏
  • 举报
回复
up

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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