About 1,490,000 results
Open links in new tab
  1. How to extract group from regular expression in Oracle?

    The third parameter of the REGEXP_SUBSTR function indicates the position in the target string (de_desc in your example) where you want to start searching. Assuming a match is found in …

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

  3. sql - Extract number from string with Oracle function - Stack …

    SELECT DISTINCT column_name, extract_number(column_name) FROM table_name WHERE extract_number(column_name) = 1234; QUESTION: How do I add a function like that to my …

  4. Performance of SQL comparison using substring vs like with wildcard

    ON substr(tB.columnB,1,2) = tA.columnA The query execution plan has a lot less steps using Method 1 compared to Method 2, however, it looks like Method 2 executes much faster. Also, …

  5. sql - oracle 12c - select string after last occurrence of a character ...

    select regexp_substr( 'ThisSentence.ShouldBe.SplitAfterLastPeriod.Sentence', '[^.]+$') from dual The regex uses a negated character class to match anything except for a dot [^.] adds a …

  6. Search for a particular string in Oracle clob column

    dbms_lob.substr(clob_value_column,4000,1) Otherwise you will find ORA-22835 (buffer too small) You can also use the other sql way :

  7. sql - How to query a CLOB column in Oracle - Stack Overflow

    For example while using SQL Plus use the SET BUFFER 10000 to set it to 10000 as the default is 4000. Running the DBMS_LOB.substr command you can also specify the amount of …

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

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

  10. sql - how to select the string before the first occurrence of a ...

    I have string like below ThisSentence.should.split.beforeFirstPeriod.ofTheSentence I want to select ThisSentence. How can I do it with regexp_substr()?