About 265,000 results
Open links in new tab
  1. sql - query for substring formation - Stack Overflow

    The SUBSTRING keyword, using PostgreSQL syntax (no mention of pattern matching) is ANSI-99. Why this took them so long, I don't know. The crux of your need is to obtain a substring of …

  2. SQL SELECT WHERE field contains words - Stack Overflow

    Jan 12, 2013 · If your SQL dialect supports CHARINDEX, it's a lot easier to use it instead: SELECT * FROM MyTable WHERE CHARINDEX('word1', Column1) > 0 AND …

  3. Select substring from a column in SQL - Stack Overflow

    Feb 2, 2011 · So the first query works fine the second query when a value comes in like 02.02.2011 07:07:00 498-123456-741 it doesn't compare it to table to even though that value …

  4. SELECT Statement with substr in WHERE Clause - Stack Overflow

    Mar 9, 2012 · Using this sql statement: SELECT FieldB, FieldC FROM TableA WHERE FieldA LIKE Concat(@paramA, '%', @paramB) I cannot achieve my desired result. When I try to …

  5. Is there an equivalent to the SUBSTRING function in MS Access …

    Jun 9, 2015 · I used an update query as follows: I added to my access table one empty column for the string element I needed. Then I filled the new column with an update query with this logic …

  6. SQL SELECT everything after a certain character

    Oct 21, 2013 · How to write a SQL query that selects a substring of variable length. 0.

  7. sql - How to take last four characters from a varchar? - Stack …

    Sep 20, 2012 · For Oracle SQL, SUBSTR(column_name, -# of characters requested) will extract last four characters for a given query. e.g. SELECT SUBSTR(description, -4) FROM …

  8. how to use like and substring in where clause in sql

    To trim the first 3 and last 3 characters from a string use the SUBSTRING and LEN functions. The following example assumes your match string is called @input and starts and ends with 3 …

  9. sql server - Substring with delimiter in SQL - Stack Overflow

    Aug 27, 2013 · I'm looking into the substring function, but that doesn't seem that smart. I found a split function but it looks like overkill and I don't like to use code I don't understand. Ex:

  10. How to extract this specific substring in SQL Server?

    Apr 22, 2012 · I have a string with a specific pattern: 23;chair,red [$3] i.e., a number followed by a semicolon, then a name followed by a left square bracket. Assuming the semicolon ; always …

Refresh