select * from [b_articles] where or title '%的%' or content '%的%' and cid in (select id from [b_article_categories] where parent =34) 高手帮助
解决方案 »
- 用asp.net + dw.net开发的bs程序。
- 请修改过discuz论坛代码的高手过来帮我分析一下这个问题啊,小弟不胜感激。
- c#刚刚学习,请前辈把这段中asp代码翻译成c#,以解决我棘手的问题,无限感谢!
- 高分求:关于ASP.NET窗体对话框的问题????????
- 兄弟们,小弟想问一个关于网站的问题,进来帮忙啊!100送上!
- 在DataGrid中怎么样对前台绑定的字段进行判断?不同的数据源显示不同的字段
- 控件id如何设为变量
- 奇怪的问题!!关于ExecuteScalar的问题!
- a.aspx.cs文件传递参数到b.html中的问题
- table里面添加input
- AsyncFileUpload的问题
- 求教:帮忙看下这段代码哪里的问题?
select * from [b_articles] where title like '%的%' or content like '%的%' and cid in (select id from [b_article_categories] where parent =34)
你这样试试
select * from [b_articles] where title '%的%' or content '%的%' and cid in (select id from [b_article_categories] where parent =34)你这条语句的意思相当与select * from [b_articles] where title '%的%' or (content '%的%' and cid in (select id from [b_article_categories] where parent =34))
查询分析器执行
是还有条件 还是多了个or
多了个or 还少了likeselect * from [b_articles] where title like '%的%' or content like '%的%' and cid in (select id from [b_article_categories] where parent =34)
LZ回去把sql的语法再看看吧
select * from [b_articles] where (title like '%的%' or content like '%的%') and cid in (select id from [b_article_categories] where parent =34)