小编use*_*927的帖子

SQL Server 中 String_split 的替代方案

WITH dataforIDs AS
(
    SELECT 
        value, ERSBusinessLogic_InputDataSeries
    FROM 
        [AnimalProductsCoSD].[CoSD].[ERSBusinessLogic]
    CROSS APPLY 
        STRING_SPLIT(ERSBusinessLogic_InputDataSeries, ',')
    WHERE 
        ERSBusinessLogic_InputGeographyDimensionID = 7493
        AND ERSBusinessLogic_InputTimeDimensionValue = 'all months'
        AND ERSBusinessLogic_Type = 'HS10 aggregation'
 )
Run Code Online (Sandbox Code Playgroud)

现在我使用这个查询来拆分以逗号分隔的列 ERSBusinessLogic_InputDataSeries,但我需要将 compatible_level 设置为 140。我需要一个替代方案,因为这将在服务器上运行,我无法在那里明确更改它。

sql-server

9
推荐指数
1
解决办法
8895
查看次数

标签 统计

sql-server ×1