1.例如,我只需要编号。然后将编号整合成一条。去查询
2.
DECLARE @listStr VARCHAR(MAX);
SELECT @listStr = ISNULL(@listStr+',','')+ bh
FROM TZD_YPSX
where hosid = 1758
SELECT @listStr
1.例如,我只需要编号。然后将编号整合成一条。去查询
2.
DECLARE @listStr VARCHAR(MAX);
SELECT @listStr = ISNULL(@listStr+',','')+ bh
FROM TZD_YPSX
where hosid = 1758
SELECT @listStr