【发布时间】:2010-08-13 15:26:45
【问题描述】:
我使用 CONCAT 来获取我的标签和主题,但如果故事没有标签或主题,则结果为空
WHERE
CONCAT( ' ', table_stories.tags, ' ' )
LIKE CONCAT( '%', table_tags.tid, '%' )
AND
CONCAT( ' ', table_stories.associated, ' ' )
LIKE CONCAT( '%', table_topics.topicid, '%' )
如你所见,一切都很好,除非我们的故事没有标签或关联
我用过
table_stories.tags IS NULL OR
但问题仍然存在,无法获取没有标签或关联的故事
我该如何解决这个问题
【问题讨论】: