SQL Server 自定义函数 实现 string字符串和int字符串的分割 Split
分割后为int 的自定义函数:Split_IntALTER FUNCTION [dbo].[Split_Int](@String varchar(8000), @Delimiter char(1))returns @temptable TABLE (items int)asbegin declare @idx int declare @slice int select @idx = 1 if len(@String)<1 or @String
原创
2021-05-08 15:58:43 ·
432 阅读 ·
0 评论