PL/SQL offers the same math operators like +, -, * and /, comparison operators, and logic constructs that SQL offers. The same operator precedence that exists in SQL also exists in PL/SQL, and that precedence can also be short-circuited using parentheses; so remember PEMDAS and you should be fine.
Some people use the following mnemonic to remember PEMDAS: Please Excuse My Dear Aunt Sally. It stands for Parentheses, Exponents, Multiplication, Division, Addition, and Subtraction.
Saturday, October 4, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment