Week 4 - Spreadsheet Storage Flashcards

1
Q

What are prepared statements?

A

SQL statements that are used a lot stored as a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly