Global web icon
stackoverflow.com
https://stackoverflow.com/questions/10265841/how-t…
How to extract this specific substring in SQL Server?
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 don't want to include ';'.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/738282/how-do-…
sql server - How do you count the number of occurrences of a certain ...
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?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/11010453/get-e…
Get everything after and before certain character in SQL Server
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?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/12265411/how-c…
sql - How can I tell if a VARCHAR variable contains a substring ...
IF CONTAINS(@stringVar, 'thisstring') ... I have to run one select or another, depending on whether that variable contains a string and I can't figure out how to get it to work. All the examples I'm seeing are using columns in the contains.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/3220584/query-…
sql - query for substring formation - Stack Overflow
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.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/14290857/sql-s…
SQL SELECT WHERE field contains words - Stack Overflow
SELECT * FROM MyTable WHERE CHARINDEX('word1', Column1) > 0 AND CHARINDEX('word2', Column1) > 0 AND CHARINDEX('word3', Column1) > 0 Also, please keep in mind that this and the method in the accepted answer only cover substring matching rather than word matching. So, for example, the string 'word1word2word3' would still match.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/4389571/how-to…
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
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/8726111/sql-se…
SQL Server - find nth occurrence in a string - Stack Overflow
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 achieve this.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/35583733/right…
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
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/29895896/split…
Split a string at a specific character in SQL - Stack Overflow
It's detailed in Pattern matching as: The substring function with three parameters, substring (string from pattern for escape-character), provides extraction of a substring that matches an SQL regular expression pattern. As with SIMILAR TO, the specified pattern must match the entire data string, or else the function fails and returns null.