MySQL
MySQL Connector/Python automatically appends a semicolon at the end of your queries.
Operator Precedence - Highest to lowest
Parentheses()
Operations inside parentheses are evaluated first.
Unary Operators
+ (positive)
- (negation)
~ (bitwise NOT)
! (logical NOT)
Multiplication, Division, Modulus: These operators are evaluated next and have the same precedence:
* (multiplication)
/ (division)
% (modulus)
Addition and Subtraction: These operators have the next level of precedence:
+ (addition)
- (subtraction)
Comparison Operators: All of these operators have the same precedence:
= (equal to)
!= (not equal to)
> (greater than)
< (less than)
>= (greater than or equal to)
<= (less than or equal to)
LIKE (pattern matching)
Logical NOT
!
Logical AND
&&
Logical OR
||
pymysql
The
pymysqllibrary is a Python client for interacting with MySQL databases.
Use Cases in Exploitation
Last updated