Week 4 - Spreadsheet Storage Flashcards
1
Q
What are prepared statements?
A
SQL statements that are used a lot stored as a variable
2
Q
What are two benefits of using prepared statements?
A
Increased security, as the database engine can be sure that placeholders only contain data, and need not be parsed as a full SQL statement
Increased speed, as the database engine can compile a statement once and then execute it many times