When compared to an before version, SQL Server 2016 has ii novel string functions shown inwards the side yesteryear side image.
String2016.png
The syntax for the novel function:
String2016.png
The syntax for the novel function:
STRING_SPLIT ( string , separator )
Let us accept this string:
'quote, substring, toLowerCase, toUpperCase, charAt,
charCodeAt, indexOf, lastIndexOf'
charCodeAt, indexOf, lastIndexOf'
Now write the next code inwards the inquiry pane of SQL Server 2016 every 2nd shown. When the inquiry is evaluated nosotros run into that the string is split upwards at the comma (,) every 2nd shown. The white spaces are preserved.
Komentar
Posting Komentar