Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized View
Message
 
 
To
05/08/2004 05:34:46
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00930911
Message ID:
00930948
Views:
9
If cOrder_ID is a character type than you can set it to empty string (assuming that SET ANSI OFF) to get all orders. You can also change '=' to 'LIKE".
CREATE SQL VIEW order_purchase CONNECTION sql_hcdc_1 SHARE AS 
SELECT * FROM order_purchase WHERE Order_ID LIKE ?cOrder_ID ORDER BY order_ID
* Get all orders 
cOrder_ID = "%"
>I set up some remote views as shown:
>
>CREATE SQL VIEW order_purchase CONNECTION sql_hcdc_1 SHARE AS SELECT *
FROM order_purchase WHERE Order_ID = ?cOrder_ID ORDER BY order_ID
>
>In some time, I would like to selct all order_purchase, what can I do? any wildcard substitute for cOrder_ID?!
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform