SQLexecute
procedure SQLexecute(s:string|text)
procedure SQLexecute(s:string|text, a:array)
procedure SQLexecute(s:string|text, l:list)
procedure SQLexecute(s:string|text, m:set)
procedure SQLexecute(s:string|text, lp:list, a:array)
procedure SQLexecute(s:string|text, lp:list, l:list)
procedure SQLexecute(s:string|text, lp:list, m:set)
s
|
SQL command to be executed
|
a
|
An array
|
l
|
A list
|
m
|
A set
|
lp
|
A list of parameters
|
- Get all different values of the column color in the table pricelist.
- Initialize the arrays colors and prices with the values of the columns color and price of the table pricelist.
- Create a new table newtab in the active database with 2 columns, ndx and price.
- Add data entries to table newtab.
declarations prices: array(1001..1004) of real colors: array(1001..1004) of string allcolors: set of string end-declarations SQLexecute("select color from pricelist", allcolors) SQLexecute("select articlenum,color,price from pricelist", [colors,prices]) SQLexecute("create table newtab (ndx integer, price double)") SQLexecute("insert into newtab (ndx, price) values (?,?)", prices)
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.