Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax Error?
Message
From
23/05/2012 09:43:49
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01544054
Message ID:
01544139
Views:
33
>>>In the following I am gettting a Syntax Error on the Update command. (I must be going blind.)
>>>
>>>What am I doing wrong?
>>>
>>>
>>>CREATE CURSOR itest (name c(50), section C(50), value C(250))
>>>INSERT INTO itest VALUES ('Test','Main','1')
>>>Update iTest set Value="2" where Section="Main" and Name="Test"
>>>
>>
>>You have field named as keyword.
>>Change Value to Value1 and you will have no problems.
>
>Or just prefix Value with the alias (Actually I would argue that all fields should be prefixed with the alias):
>
>
>Update iTest set iTest.Value="2" where iTest.Section="Main" and iTest.Name="Test"
>
I agree. A lot more work, but worth it.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform