Reading Project Data6:04 with Alena Holligan
Let's take a look at the data you'll be working with throughout this course. Once we understand the structure of the database and connection between the tables, we'll start writing our first SQL statement.
PDO::query executes a SQL statement in a single function call, returning the result set (if any) returned by the statement as a PDOStatement object.
For a query that you need to issue multiple times, you will realize better performance if you prepare a PDOStatement object using PDO::prepare() and issue the statement with multiple calls to PDOStatement::execute().
Import for MySQL
You need to sign up for Treehouse in order to download course files.Sign up