A method for cloning of prepared statements for execution against a
database is described. In one embodiment, for example, a method for
executing a database statement comprises steps of: preparing at least one
template for execution of a statement against a database; storing the at
least one template in a shared cache available to a plurality of database
connections; in response to a request to execute a particular statement
on a given database connection, determining whether a template for the
particular statement is available in the shared cache; if the template is
available in the shared cache, creating a database statement based on the
template for execution on the given database connection; and executing
the database statement on the given database connection.