Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inlist function
Message
From
15/05/2002 10:59:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00656910
Message ID:
00656924
Views:
7
>Hi all
>
>I want to do an SQL-select where a field should match a lot of ordernumbers like: SQLEXEC(nHandle,"select * from table where inlist(ordernr,'10507','11923','93172','88627','93821')","Query1")
>It can be 1-300 numbers in the list.
>The VFP function Inlist() works fine if I use it on a local table.
>The trouble is that it dont work in an SQL-select to a SQL2000 server.
>Are there any similar function I can use instead?
>
>Thanks in advace
>/Kjell

SQLEXEC(nHandle,;
"select * from table where ordernr IN ;
('10507','11923','93172','88627','93821')","Query1")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform