Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[使用] 调用侧边栏热门商家的SQL语句,也不知道还有没有更简洁的

[复制链接]
shuijingwan 发表于 2011-5-20 17:22:53 | 显示全部楼层 |阅读模式
今天上午的时候,一直想要在论坛中显示侧边栏热门商家的信息,搞了大半天,终于搞定,为:select * from pre_brand_shopitems where instr(concat(',',(select value from pre_brand_data where
variable='sidebarshop'),','),concat(',',pre_brand_shopitems.itemid,',')) > 0
回复

使用道具 举报

炒股是一种学问 发表于 2011-5-20 23:09:07 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-11 12:57 , Processed in 0.100834 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表