1. A method for generating and executing an execution plan comprising: compiling a database statement before the database statement is executed, wherein the database statement is compiled by obtaining a value of the database statement placeholder prior to execution, and generating said execution plan based on said value; and executing said execution plan; wherein said value is referenced in the database statement, and said generated execution plan is useable for a subsequent invocation of the database statement.