Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables in sql statements
Message
From
16/03/2002 22:32:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Variables in sql statements
Miscellaneous
Thread ID:
00633846
Message ID:
00633846
Views:
41
Hello Group,

I would like to use a variable in an update SQL

Public gcNext_Uniq

gcNext_Uniq = 451001830

UPDATE suniq;
SET nextuniq = &gcNext_Uniq;
WHERE TblName = 'Studemo'

Doesn't work.

How do I get the SQL to take a parameter?

UPDATE suniq;
SET nextuniq = 451001830;
WHERE TblName = 'Studemo'

Works fine

Thanks much
Jim
Next
Reply
Map
View

Click here to load this message in the networking platform