A prepared statement is a feature used to execute the same (or similar) SQL statements repeatedly with high efficiency. Prepared statements basically work like this: 1  Prepare: An SQL statement template is created and sent to the database.