sql以某個字段的逗號分開成多條數據

SELECT NEWID(),a.RYBH,NULL,NULL,SUBSTRING(a.ZCZY, b.number, CHARINDEX(',', a.ZCZY+',', b.number)-b.number) AS Specialty,a.ZCZY FROM   DataCenter.dbo.XXZX_YPTQY_T_QY_ZYJSRYZCXX a JOIN MASTER.dbo.spt_va
相關文章
相關標籤/搜索