Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a local view with whatever SQL statement?
Message
 
To
30/09/1998 12:46:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00142471
Message ID:
00142480
Views:
32
>Hi,
> I don't really know whether there is a way of doing this, I want to create a view without using the View Wizard with an SQL statement that I type. From the view wizard, I can see the equivalent SQL statement, but I couldn't edit it. Is there any way of doing this?
>And this view may have parameters and it will be included in DE of a form. I basically want to avoid writing SQL queries(the cursors) in the code and want to keep them in a view.
>
>Please help.
>
>Thanks
>Puri

Puri, you can copy that SQL statement, change it, and run in Command window like:

CREATE SQL VIEW myView AS ;
SELECT * from myTable ;
WHERE field1 = ?parameter1

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform