| Home | How To | Online Documentation | Support | Download | Order |
|
|
SACommand &operator << ( const SANull
&null
)
;
SACommand &operator << ( const SAPos
&pos
);
SACommand
&operator << ( bool &Value
); SACommand &operator << ( short
&Value
);
SACommand &operator << ( long
&Value
);
SACommand &operator << ( double
&Value
);
SACommand &operator << ( const SANumeric
&Value
);
SACommand &operator << ( const SADateTime
&
Value
);
SACommand &operator << (const
SAChar *Value
); SACommand &operator << ( const SAString
&Value
);
SACommand &operator << ( const SABytes
&Value
);
SACommand &operator << ( const SALongBinary
&LongValue
);
SACommand &operator << ( const SALongChar
&LongValue
);
SACommand &operator << ( const SABlob
&
LobValue
)
;
SACommand &operator << ( const
SAClob &LobValue
)
;
SACommand &operator << ( const SAValueRead
&Value
)
;
Binds input variables. ParametersValue . A value of an input variable. LongValue. A reference to an aiding object representing a value of a long input variable or a callback function which will be used for getting the long value. LobValue. A reference to an aiding object representing a value of a Lob input variable or a callback function which will be used for getting the Lob value. pos. A reference to the SAPos object which represents the position of input parameter in the command. RemarksThis operator is used for associating data objects to the command object. Every command object maintains an internal heterogeneous array of parameter objects - this operator assigns values to parameter objects from this array. Because of the operator returns a reference to a SACommand object you can chain the operator e.g. cmd << 3 << 2.5 << "Istanbul"; By default the sequence of values
corresponds to the numbers of parameters in a command text.
If you want to assign null value to an input variable you have to include SANull object in the chain of bind operators in place of null value. E.g. (cmd is a SACommnad object)
If you want to bind a parameter by name or change the order of binding variables you have to include a SAPos object before the value in the chain of bind operators to prepare the required parameter position for the next bind. E.g. (cmd is a SACommnad object)
Values for the input parameters can also be assigned to SAParam object. Syntax SACommand &operator << ( const SAValueRead &Value ); allows to set input variable's value from existing SAParam or SAField object. Server specific notesBinding Lob(CLob, BLob) data when working with Oracle server has some differences from others. It's necessary for a name of bind variable to be the same as the column name it associated with. Ex.: Update TEST set FBLOB = :fblob where FKEY = 'KEY' Therefore, it's impossible to bind Lob(CLob, BLob) data to Oracle database by position. See alsoCreateParam, Param, ParamByIndex, ParamCount Problems and QuestionsIf you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com. |
||||||||||||||||||