Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone explain how to split comma separated values in the SQL query?

1 Answer

0 votes
by (119k points)
edited by

We can use STRING_SPLIT() function to split the values on a specific separator. Here is an example to split comma separated values in SQL.

Select color from STRING_SPLIT( ‘red, blue, yellow’, ‘,’);

I advise registering for this SQL training online program by Intellipaat to learn SQL.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 23, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer

Browse Categories

...