TJFX_XFTS_CODE_CONST 码表
类似于:
type
01 aaa
02 bbb
03 ccc
04 ddd
TJFX_PetitionRecord 业务表
类似于:
FK_TYPE
01,02,03
select(select title + ',' from TJFX_XFTS_CODE_CONST where CHARINDEX(','+convert(varchar,id)+',' ,','+ PollutionType + ',')>0 for xml path(''))
from TJFX_PetitionRecord
关联中间表查出来类似于:
aaa, bbb,ccc
类似于:
type
01 aaa
02 bbb
03 ccc
04 ddd
TJFX_PetitionRecord 业务表
类似于:
FK_TYPE
01,02,03
select(select title + ',' from TJFX_XFTS_CODE_CONST where CHARINDEX(','+convert(varchar,id)+',' ,','+ PollutionType + ',')>0 for xml path(''))
from TJFX_PetitionRecord
关联中间表查出来类似于:
aaa, bbb,ccc