Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - Insert statement
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00489646
Message ID:
00489647
Views:
10
>I have a bunch of variables that i need to insert into a sql table. Is it possible, and if so what is the exact syntax, to use SQLEXEC() and an INSERT statement to put FoxPro variables into a SQL table. I know that working solely with SQL dml syntax you can declare and use variables via the @ character but I'm stuck as to how to use VF variables within the SQLEXEC() statement.

If memory serves...

LOCAL liVar1, lcVar2

liVar1 = 1
lcVar2 = 'Microsoft'

SQLEXEC(lhHandle, "INSERT INTO TableName (?liVar1, ?lcVar2)")
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform