Stacked queries SQL injection: execute multiple statements to modify data, create users, and gain RCE.
Overview
Execute multiple SQL statements separated by ;. Unlike UNION/error-based, stacked queries can run INSERT, UPDATE, DELETE, and administrative commands. Not all databases/drivers support this.
Support Matrix
Database
Supported
Notes
MSSQL
Yes
Full support
PostgreSQL
Yes
Full support
MySQL
Depends
Only with mysqli_multi_query() or PDO with ATTR_EMULATE_PREPARES