Join Bill Weinman for an in-depth discussion in this video Executing the SQL, part of MySQL Essential Training.
…Like most database APIs the PDO interface is built on top of the standard…MySQL C interface which provides a facility for prepared statements.…Prepared statements allow the database to analyze and compile an…SQL statement and then execute it over and over again.…To get the results one row at a time.…This is actually a lot more efficient than it sounds.…The alternative would be to grab all of the rows of a result at once…which may sound like a good idea, but it rarely actually is a good idea.…
You never know how many rows there'll be or how…much memory and compute resources will be required to process them.…Getting one row at a time is very manageable.…And with prepared statements, it's actually quite efficient.…Prepared statements also provide for statement parameters.…Statement parameters provide significant security…benefits, especially against SQL injection attacks.…Here in this get_albums SQL function, you notice that the query is very simple.…It's just a select everything.…
From album, order by title.…
- Writing queries
- Creating and updating databases and tables
- Using MySQL built-in functions
- Sorting and filtering data
- Updating tables with triggers
- Working with subselects and views
- Creating and using a stored function
Skill Level Beginner
1. Installing and Configuring the Test Environment
2. Basic Syntax
3. Creating a Database
4. MySQL Data Types
5. MySQL Functions
8. Subselects and Views
9. Stored Routines
10. PHP's PDO Interface with MySQL
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.