标签:sql in 字符串
方法一:
SELECT Z.ZONE_ID,Z.NAME,Z.CODE,Z.OTHER_NAME FROM T_SYS_ZONE Z
WHERE CONCAT(‘,‘(SELECT ZI.INCHARGE_ZONE FROM T_CRM_SALES_INCHARGE_ZONE ZI WHERE Z.SALES_MEN=7),‘,‘)
方法二:
SELECT Z.ZONE_ID,Z.NAME,Z.CODE,Z.OTHER_NAME FROM T_SYS_ZONE Z
WHERE FIND_IN_SET(Z.ZONE_ID,(SELECT ZI.INCHARGE_ZONE FROM T_CRM_CLES_INCHARGE_ZONE ZI WHERE ZI.SALES_MEN=7))
本文出自 “架构师之路” 博客,请务必保留此出处http://5934541.blog.51cto.com/5924541/1631345
标签:sql in 字符串
原文地址:http://5934541.blog.51cto.com/5924541/1631345