mysql 函数

concat 用于字符串拼接,如:

SELECT
d.dept_id
FROM
sys_dept d
WHERE
d.ancestors LIKE CONCAT('0,100,' ,?, '%')

  

posted @ 2019-11-12 10:06  saifei1125  阅读(164)  评论(0编辑  收藏  举报