求sql语句 where语句 order by

sky0230 2009-05-27 03:46:48
sqlu="select * from link where "&pl&" like '%"&se&"%'"
这句是按关键字和编号(从小到大)排列
select * from link where "&pl&" like '%"&se&"%' and incount
我这样写的搜索关键字后有积分的就显示了没有积分的就没有显示。
我想做成按关键字+积分以大到小排序应该怎么改啊?
...全文
67 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sky0230 2009-05-27
  • 打赏
  • 举报
回复
OH~YES!谢谢了!
bing475879749 2009-05-27
  • 打赏
  • 举报
回复
select * from link where "&pl&" like '%"&se&"%' order by incount desc 是不是这样咯?
dfboyxing 2009-05-27
  • 打赏
  • 举报
回复
select * from link where "&pl&" like '%"&se&"%' order by incount desc

28,390

社区成员

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

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