OCIDefineByName & OCIBindByName diffs?

admin

Administrator
Staff member
Is DefineByName used exclusively for select statments and BindByName used for insert statements? I keep seeing example code that seems to use one exclusively for SELECT and the other exclusively for INSERT statements. Also, my PHP book says that OCIDefineByName copies the value to the variable, where OCIBindByName binds an oracle placeholder to the variable. How do I know which I want to use? I've seen them used together, but only when someone does a select then an insert. All of my code for the time being is just selecting data from the database.
 
Back
Top