1. Connect to the database (this is done once for the entire session).
2. Prepare the SQL statement for execution.
3(a). Gather the information needed to bind local data.
3(b). Bind local data to SQL placeholders.
4. Execute the statement.
5. Fetch more rows, if needed.

Figure 1: Database access.

Back to Article