About 50 results
Open links in new tab
  1. How to Select a substring in Oracle SQL up to a specific character?

    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 …

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

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

  4. what is the difference between SUBSTRING and SUBSTR functions …

    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 …

  5. sql - Using substr to trim string on Oracle - Stack Overflow

    Jun 17, 2014 · Using substr to trim string on Oracle Asked 11 years, 5 months ago Modified 10 years, 8 months ago Viewed 75k times

  6. 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, …

  7. get string from right hand side - Stack Overflow

    Aug 9, 2010 · I am writing a query in Oracle. I want to get a string from the right hand side but the string length is dynamic. Ex: 299123456789 I want to get 123456789 substr …

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

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

  9. using oracle sql substr to get last digits - Stack Overflow

    Jan 2, 2015 · select column_name, to_number(regexp_substr(column_name,'\d+$')) from table_name; \d matches digits. Along with +, it becomes a group with one or more digits. $ …

  10. sql - How to get string after character oracle - Stack Overflow

    Jul 18, 2017 · I have VP3 - Art & Design and HS5 - Health & Social Care, I need to get string after '-' in Oracle. Can this be achieved using substring?