Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INSERT INTO cannot be parameterized?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00829582
Message ID:
00829584
Views:
14
Why do you need parameters in this case? Remove "?" and it'll work.

>This works (in VFP):
>
>lnID = 5
>SELECT * FROM mytable WHERE TableID=?lnID
>
>But this doesn't work:
>lnID = 5
>lcName = "Name"
>INSERT INTO MyTable ( TableID, Name ) VALUES ( ?lnID, ?lcName )
>
>
>Is this true?
>
>Why is this? Should INSERT and DELETE be able to be parameterized just like SELECT????
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform