In short, you construct the SQL with placeholders where your data would go, tell the database to Prepare
it, then use BindType
to tell the prepared statement what type of data each placeholder represents. (That last step is not needed for PostgreSQL.) Finally, you execute the SQL with the data for each placeholder.
See Dave’s example above.