Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Idiot guide to using remote tables
Message
From
17/11/2003 17:46:53
 
 
To
15/11/2003 08:28:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00849959
Message ID:
00850802
Views:
15
Cetin, greetings again

quick question about

>SQLExec(lnHandle,'insert into SomeTable (textField) values (?myTemp.myMemo)')
>

whats the best syntax for inserting records with a few fields? and how would that differ if, say, the records had 100 fields.

I'm trying to insert a bunch of records using

for n=1 to reccount()
scatter memvar
result=SQLEXEC(gnhandle,'insert into mytable (field1,field2,field3 etc) values (m.field1,m.field2,m.field3 etc),'')
endfor

the "result" is coming back as minus 1 so obviously I've got something wrong.

In any case, is there a more efficient way? Particularly for tables with large numbers of columns that looks horrendous!

Thanks

Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform