About 242,000 results
Open links in new tab
  1. Get everything after and before certain character in SQL Server

    Jun 13, 2012 · I got the following entry in my database: images/test.jpg I want to trim the entry so I get: test So basically, I want everything after / and before . How can I solve it?

  2. 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.

  3. sql - How do I remove the first characters of a specific column in a ...

    In SQL, how can I remove the first 4 characters of values of a specific column in a table? Column name is Student Code and an example value is ABCD123Stu1231. I want ...

  4. How to substring string value in SQL Server 2008 - Stack Overflow

    Nov 21, 2012 · Select Substring('KLPI_2012_CBBE2_E_12704_2012-09-21_13_59_52',6,18) If you want to find it within the string, then CharIndex would be useful. Are you sure you want to do this in …

  5. 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 ago Modified 4 years, 7 months ago Viewed 732k times

  6. SQL Server - substring from position to end of string

    SQL Server - substring from position to end of string Asked 4 years, 10 months ago Modified 4 years, 10 months ago Viewed 18k times

  7. How do I use SUBSTRING and CHARINDEX in SQL to return only the …

    Jan 2, 2020 · 0 I have a column of data that contains varchar data and I've been trying to return only the section contained with brackets using CHARINDEX and SUBSTRING : column data: 'this is an …

  8. SQL SELECT everything after a certain character

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

  9. 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), because you …

  10. sql server - Right Substring Statement SQL - Stack Overflow

    I want to substring the seventh and eighth caractere from string by starting on the right I want to make dynamic this try : select substring (right (P.Name,8), 1,2) How do you properly write a Right