by fraxzi » Sat Jan 09, 2010 12:44 am
anserkk wrote:How can I iterate and translate this to ADS SQL statement to be able to update a table?
I am not sure whether I understood your requirement exactly
Assuming Element1, Element2 are the Column names of your Table
Update Query
- Code: Select all Expand view
cSql:="UPDATE Table_Name SET "
for i=1 to len(aArray)
cSql+=aArray[i][1]+" = "+aArray[i][2]
Next
Regards
Anser
Hello Anser,
The array contains the field (column) or values.
Is there a better approach than iterating AdsExecuteSQLDirect() ?
Regards,
Fraxzi
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15