Page cover
githubEdit

databaseMySQL

circle-info

MySQL Connector/Python automatically appends a semicolon at the end of your queries.

chevron-rightOperator Precedence - Highest to lowesthashtag
circle-info
  1. Parentheses ()

Operations inside parentheses are evaluated first.

circle-info
  1. Unary Operators

+ (positive)

- (negation)

~ (bitwise NOT)

! (logical NOT)

circle-info
  1. Multiplication, Division, Modulus: These operators are evaluated next and have the same precedence:

* (multiplication)

/ (division)

% (modulus)

circle-info
  1. Addition and Subtraction: These operators have the next level of precedence:

+ (addition)

- (subtraction)

circle-info
  1. 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)

circle-info
  1. Logical NOT !

circle-info
  1. Logical AND &&

circle-info
  1. Logical OR ||

chevron-rightGeneral Commandshashtag
circle-info

Tables

circle-info

Columns

circle-info

Output

chevron-rightpymysqlhashtag
  • The pymysql library is a Python client for interacting with MySQL databases.

circle-info

Use Cases in Exploitation

Last updated