Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- RETORNA A POSIÇÃO DO CARACTERE QUE ESTÁ SENDO SETADO NO PARÂMETRO
- --obs: É CASE SENSITIVE
- SELECT INSTR('O Aprendaplsql é o melhor site', 'a')
- FROM dual;
- SELECT INSTR('O Aprendaplsql é o melhor site', 'e', 10)
- FROM dual;
- SELECT INSTR('O Aprendaplsql é o melhor site', 'e', 10, 2)
- FROM dual;
- SELECT INSTR('O Aprendaplsql é o melhor site', 'e', -1)
- FROM dual;
- SELECT SUBSTR('O Aprendaplsql é o melhor site',
- INSTR('O Aprendaplsql é o melhor site', 'A'), 12)
- FROM dual;
- SELECT SUBSTR('teste' ,INSTR('O Aprendaplsql é o melhor site', 'A'), 6)
- FROM dual;
- SELECT instr2('O Aprendaplsql é o melhor site', 'e', -3)
- FROM dual;
- SELECT INSTR('O Aprendaplsql é o melhor site', 'e', -3)
- FROM dual;
- SELECT INSTR('O Aprendaplsql é o melhor site', 'a')
- FROM dual;
- SELECT regexp_instr('O Aprendaplsql é o melhor site', 'a', 1, 1, 0, 'i')
- FROM dual;
- SELECT regexp_instr('O Aprendaplsql é o melhor site', 'a', 1, 1, 0, 'c')
- FROM dual;
- SELECT regexp_instr('O Aprendaplsql é o melhor site', 'a|e|i|o|u')
- FROM dual;
- SELECT regexp_instr('O Aprendaplsql é o melhor site', 'a|e|i|o|u', 1, 1, 0, 'i')
- FROM dual;
Advertisement
Add Comment
Please, Sign In to add comment