Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Viewing all articles
Browse latest Browse all 989

CSV Shredding in SQL Server and Oracle

$
0
0
1)-1 ) AS VARCHAR(20)) AS code_cd , SUBSTRING(rem,CHARINDEX(',',rem,1)+1,4000) rem , Level+1 AS Level FROM CTEshredding WHERE rem IS NOT NULL AND LEN(rem) > 1 ) ... Obviously I had to "roll my own" SQL Server tally table, rather than just generate one ...

Viewing all articles
Browse latest Browse all 989

Trending Articles