- 博客(3)
- 收藏
- 关注
原创 mysql查询字段将其分割
SELECT substring_index( substring_index( a.label, '/', b.help_topic_id + 1 ), '/',- 1 ) AS label FROM sys_industryknowledge a JOIN mysql.help_topic b ON b.help_topic_id < (length( a.label ) - length( REPLACE ( a.label, '/', '' ) ) + 1 )得到如下图结果.
2022-05-05 18:41:48
1350
原创 mysql多条件查询包括数组参数
模糊查询内容,查询标签数组<select id="getByLabelAndContent" resultType="com.lingyue.bx.base.api.entity.industryKnowledge.IndustryKnowledgeEntity"> select id, title, content, picture, label, status, sort,
2022-03-29 18:17:58
1652
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅