About 2,000,000 results
Open links in new tab
  1. SELECT Statement with substr in WHERE Clause - Stack Overflow

    Mar 9, 2012 · SELECT Statement with substr in WHERE Clause Asked 13 years, 9 months ago Modified 12 years, 6 months ago Viewed 106k times

  2. what is the difference between SUBSTRING and SUBSTR functions (SQL)?

    Oct 15, 2012 · 3 substring is the sql operation defined in the sql standard ISE:IEC 9075:1992. substr is an old syntax used by oracle. This wrong syntax is completely inconsistent with sql usage of real …

  3. SUBSTR and INSTR SQL Oracle - Stack Overflow

    I've started using SUBSTR and INSTR in Oracle but I got confused when I came across this. SELECT PHONE, SUBSTR(PHONE, 1, INSTR(PHONE, '-') -1) FROM DIRECTORY; So I know SUBSTR cuts …

  4. sql - How to join two tables based on substring values of fields ...

    Feb 21, 2015 · I am having problem with sql. I want to join two tables, employee and class instructor. Condition is that employee is having unid column like 'u0871457' where as class instructor is having …

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

    8 SELECT REGEXP_SUBSTR('STRING_EXAMPLE','[^_]+',1,1) from dual is the right answer, as posted by user1717270 If you use INSTR, it will give you the position for a string that assumes it contains …

  6. How do I get textual contents from BLOB in Oracle SQL

    May 6, 2009 · I am trying to see from an SQL console what is inside an Oracle BLOB. I know it contains a somewhat large body of text and I want to just see the text, but the following query only indicates …

  7. sql - query for substring formation - Stack Overflow

    Jun 18, 2019 · SELECT SUBSTR('abcd_01', -2) FROM DUAL Oracle doesn't have a RIGHT function, with is really just a wrapper for the substring function anyway. But Oracle's SUBSTR does allow you …

  8. 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?

  9. How to use SQL CONCAT/SUBSTR? - Stack Overflow

    Feb 18, 2015 · 4 You seem to be confusing the concat function, substr function and the concatentation operator (||). You aren't using substr to get the first character of the first name, and to restirct the …

  10. Extract a substring from the end of a string in sql server

    Apr 15, 2014 · declare @temp varchar(40) set @temp = 'BB10-1_X-4759-566549' select @temp, REVERSE(@temp) select REVERSE(substring(REVERSE(@temp),0,CHARINDEX(' …