如何搜索“很多喜欢”在数据库(mysql)中?
我想搜索数据库中的字符串数量(类型:MYSQL),我这样做了:
SELECT *
FROM `rooms`
WHERE `dates` LIKE '%09/08/10%' OR '%08/08/10%'
为什么它不起作用?当我删除 OR '%08/08/10%'
的部分时,它运行良好,我认为我使用它不好。 我该怎么做呢?
I want to search number of strings in the Database (type: MYSQL) and I did this:
SELECT *
FROM `rooms`
WHERE `dates` LIKE '%09/08/10%' OR '%08/08/10%'
Why doesnt it work? when I removed the part of OR '%08/08/10%'
it was working well, I think I use it not good.
How should I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试这样:
Try like this: