Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
ora_bind
Popis
bool ora_bind ( resource cursor, string phpvar, string sqlparam, int length [, int type] )Binds the named PHP variable with a SQL parameter.
ora_bind() must be called after ora_parse() and before ora_exec(). Input values can be given by assignment to the bound PHP variables, after calling ora_exec() the bound PHP variables contain the output values if available.
Seznam parametrů
cursor
An Oracle cursor, opened with ora_open().
phpvar
The PHP variable to be bound.
sqlparam
The SQL parameter. Must be in the form :name.
length
type
Defines the type of the parameter. It defaults to ORA_BIND_INOUT. Possible values are listed below:
Návratové hodnoty
Vracà TRUE pÅ™i úspÄ›chu, FALSE pÅ™i selhánÃ. Details about the error can be retrieved using the ora_error() and ora_errorcode() functions.
PÅ™Ãklady
Poznámky
When using oci8 as a replacement for the deprecated oracle extension, consider using:
oci_bind_by_name() |
oci_bind_array_by_name() |
PÅ™edcházejÃcà | Domů | Dalšà |
Oracle Functions [deprecated] | Nahoru< |