myql GROU_CONCAT 與FIND_IN_SET查詢結果爲空問題解決

有兩張表,表結構如下,右邊是hot_incident數據 hot_event_person_ids以字符串的形式存多個hot_person表裏的id hot_person數據如下 需求: 根據hot_person表裏id爲2的用戶與hot_incident.hot_event_person_ids對應的所有的incident_title的拼接,中間用逗號隔開 實現: SELECT hp.id id
相關文章
相關標籤/搜索