About 36,900 results
Open links in new tab
  1. How to extract this specific substring in SQL Server?

    Apr 22, 2012 · After specifying the field in the substring function, the second argument is the starting location of what you will extract. That is, where the ';' is + 1 (fourth position - the c), …

  2. sql - Split string and take last element - Stack Overflow

    Standard STRING_SPLIT does not allow to take last value. The trick is to reverse the string (REVERSE) before splitting with STRING_SPLIT, get the first value from the end (TOP 1 value) …

  3. How to Select a substring in Oracle SQL up to a specific character ...

    How to Select a substring in Oracle SQL up to a specific character? Asked 15 years, 1 month ago Modified 4 years, 8 months ago Viewed 732k times

  4. sql - query for substring formation - Stack Overflow

    Jul 10, 2010 · RIGHT is only supported by SQL Server and MySQL. See my answer - there's no silver bullet for consistent substring function name & syntax across databases.

  5. sql server - How do you count the number of occurrences of a …

    I have a column that has values formatted like a,b,c,d. Is there a way to count the number of commas in that value in T-SQL?

  6. SQL Server - find nth occurrence in a string - Stack Overflow

    Jan 4, 2012 · My SQL supports the function of a substring_Index where it will return the postion of a value in a string for the n occurance. A similar User defined function could be written to …

  7. sql - MySQL query String contains - Stack Overflow

    SELECT * FROM `table` WHERE `column`.contains('textABC') In PHP, the function is called substr, so maybe:

  8. How to get first character of a string in SQL? - Stack Overflow

    Apr 27, 2009 · I have a SQL column with a length of 6. Now want to take only the first char of that column. Is there any string function in SQL to do this?

  9. SQL SELECT everything after a certain character - Stack Overflow

    Oct 21, 2013 · SQL SELECT everything after a certain character Asked 12 years, 2 months ago Modified 1 year, 7 months ago Viewed 162k times

  10. sql - How to split a comma-separated value to columns - Stack …

    May 14, 2012 · I have a table like this Value String 1 Cleo, Smith I want to separate the comma delimited string into two columns Value Name Surname 1 Cleo Smith I need only two fixed …