Purpose
Update
the selected data with the provided array(s).
Synopsis
procedure SQLupdate(s:string, a:array)
Arguments
s
|
An SQL `SELECT' command
|
a
|
An array of one of the basic types (integer, real,
string or Boolean), may be a tuple of arrays
|
Example
The following example initializes the array prices with the values of the table pricelist, changes some values in the array and finally, updates the date in the table pricelist.
declarations
prices: array(1001..1004) of real
end-declarations
SQLexecute("select articlenum,price from pricelist", prices)
prices(1002):=prices(1002)*0.9; prices(1003):=prices(1003)*0.8
SQLupdate("select articlenum,price from pricelist", prices)
Further information
This procedure updates the data selected by an SQL command
(usually `SELECT') with an
array or tuple of arrays.
This procedure is available only if the data source supports
positioned updates (for instance, MS Access does but MS Excel does not).
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.