Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2003, 10:06 AM
Authorized User
 
Join Date: Jul 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple Values Search ..

i've a little prob with SQL .. im not familiar with SQL so im not sure whether it can be done ...

i've values = 2,4,5,7,8 .. the SQL query shud search for all these values and return records corresponding to each value . how i do this .



 
Old July 22nd, 2003, 10:32 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

SELECT *
FROM myTable
WHERE myField IN (2,4,5,7,8)

might do it for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple field search ddnk77872 PHP Databases 0 May 15th, 2007 02:55 AM
Search with multiple menus forry SQL Language 0 November 5th, 2005 07:23 AM
Multiple Joins in Multiple Table Search query pookster Access 4 September 23rd, 2004 03:04 PM
Multiple Keyword Search tuffour Classic ASP Databases 3 September 10th, 2004 06:12 AM
search for multiple words keph Beginning PHP 5 April 6th, 2004 01:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.