Skip to content

Miscellaneous

IT Notes → Database → Oracle @ December 22, 2020

REGULAR EXPRESSIONS:

  • REGEX_SUBSTR(string,pattern,position,whichoccurence,instructionofmatch) character string matched.
  • REGEX_INSTR(string,pattern,position,whichoccurence,optional,instructionofmatch) optional = 1 position after match otherwise position of match.
  • REGEX_REPLACE(string,pattern,replace,position,optional,instructionofmatch) pattern replaced.
  • CHECK (REGEXP_LIKE (columnname, regexpression)).
  • everything starts at 1.
  • instructionofmatch c=case sensitive i=caseinsensitive n=. to match newline m=multiline x=ignore white spaces last info has precedence.
  • [anyonecharacter] [^notanycharacter].
  • [:graph:] = [A-Za-z0-9punctuation].
  • + one or more *zero or more ? zero or one {n1} {n1,} {n1,n2}.
  • (ab|bc|cd) where | operates like OR.
  • backslash Infront to tell you intend a character.
  • ^starts $ends.
  • 1 the first captured expression.

SESSION CONTROL STATEMENTS:

  • ALTER SESSION.
  • SET ROLE.

SYSTEM CONTROL STATEMENTS:

  • ALTER SYSTEM.

EMBEDDED SQL STATEMENTS:

  • Any DDL, DML, TCL that is integrated into a 3GL.

MISCELLANEOUS:

  • SYSTEM PRIVILEGES license to drive car and OBJECT PRIVILEGES license to drive particular car.
  • CREATE USER username IDENTIFIED BY password.
  • ALTER USER username IDENTIFIED BY password.
  • DROP USER username.
  • DROP USER username CASCADE.
  • CONNECT username/password.
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x