daxSupply

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String Library
Regular Expression Lib.
File Library
Database Library
   daxCommit
   daxConnect
   daxDatabase
   daxDisconnect
   daxDispose
   daxDone
   daxFetch
   daxParse
   daxRollback
   daxRowsProcessed
   daxSelectColumnName
   daxSelectColumns
   daxSelectColumnSize
   daxSelectColumnType
   daxSimple
   daxSupply
   Sample 1 (Toys)
   Sample 2 (Portable)
   Sample 3 (Unknown Table)
C API
C++ API
CSS Links
  
daxSupply(
   const cursor,    // db cursor handle
   const& vals[],   // values to supply
  [const nullind])  // null indicators (default = false)

Supplies values for parameter positions in the statement. The number of values supplied in one call is arbitrary, but the total number of values supplied in all calls must correspond to a multiple of the parameters in the statement.

Example:

  var csr = daxParse(link,
               'insert into csstest (ident, descr) '
               'values (#, #30)'
            );
  var x = { 1, 'barbie', 2 };
  var y = { 'ken', 3, 'ferrari' };
  daxSupply(csr, x);
  daxSupply(csr, y);
  daxDone(csr);
  ...
  daxDispose(csr); // if cursor no longer needed

If argument nullind is passed as true, each supplied value is made out of 2 variables, where the first is the value itself and the second is a boolean indicating null values by true state. The size of vals must therefore allways be even.

Example:

  var csr = daxParse(link,
               'insert into csstest (ident, descr) '
               'values (#, #30)'
            );
  var x = {
    { 1, false }, {'barbie', false },
    { 2, false }, {'',       true  }
  };
  daxSupply(csr, x, true);
  daxDone(csr);
  ...
  daxDispose(csr); // if cursor no longer needed
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>