Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个带有名称设置的 MySql TABLE:
我需要为 JOIN 和 FIND_IN_SET 方法从标题(设置表)中select精选文章。我尝试使用此代码,但我不知道如何为精选文章“行”工作:rowcolumns
select
row
columns
SELECT a.* FROM articles a INNER JOIN settings b ON FIND_IN_SET(a.ID, b.title) <> 0
如何选择这一行?
你可以这样得到
SELECT title FROM settings WHERE title LIKE '%featuredarticle%'