About 51 results
Open links in new tab
  1. sql - How do I split a delimited string so I can access individual ...

    Nov 2, 2015 · Using SQL Server, how do I split a string so I can access item x? Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return …

  2. Split a string at a specific character in SQL - Stack Overflow

    The 3 parameters are the string to be split, the delimiter, and the part/substring number (starting from 1) to be returned. So if you have a field named string that contains stuff like AB_XXX and you would like …

  3. sql - Get the last part of the value returned by split_part () function ...

    PostgreSQL 14 will support negative index so it will be straightforward operation. split_part Splits string at occurrences of delimiter and returns the n'th field (counting from one), or when n is negative, …

  4. sql server - Split function equivalent in T-SQL? - Stack Overflow

    Mar 30, 2009 · 33 You've tagged this SQL Server 2008 but future visitors to this question (using SQL Server 2016+) will likely want to know about STRING_SPLIT. With this new builtin function you can …

  5. sql - SPLIT_PART () entire column in redshift - Stack Overflow

    Dec 2, 2022 · Split_part () can take 3 arguments - string, delimiter, and part number. So you need to cross join with a numbers table that has all the integer values from 1 to the max number of parts in …

  6. mysql - Using split_part in SQL - Stack Overflow

    Sep 27, 2017 · 123 234 456 421 345 To remove anything after the "-", I tried using Select split_part (column name, '-', 1) from table_name and it worked. Do you know what I can use to remove …

  7. SPLIT_PART with 2 delimiters with OR condition Snowflake

    SPLIT_PART with 2 delimiters with OR condition Snowflake Asked 4 years, 2 months ago Modified 4 years, 2 months ago Viewed 4k times

  8. sql - split_part multiple delimeters - Stack Overflow

    May 15, 2018 · Is there any way to use split_part on multiple delimiters? So for lower (trim (split_part (t.advisor_last_name,' ',1)) I would like to split advisor_last_name if either space (as shows) or …

  9. sql - How to split a column value to multiple columns based on ...

    Dec 11, 2020 · Need to split column value into multiple columns based on delimiter, Also need to create columns dynamically based on no. of delimiters, delimiter could be comma or so. Thanks,

  10. sql - Split string on only first occurance of character/delimiter ...

    I need to split these examples into City and Of-Style and Part1 and Part2. I figured out this little piece of code, but it switches part1 and part2 if the string contains a '-'.