Painting Blue Code
Simple, self-explanatory code snippets.
2020-02-23
MySQL - Split a string where substring is found
select
SUBSTRING_INDEX
('part 1, part 2', ',',
1
) as part_1
,
SUBSTRING_INDEX
('part 1, part 2', ',',
-1
) as part_2
;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment